Add docs server Dockerfile
This commit is contained in:
parent
afbf6e7682
commit
1be73dd347
4
docs/Dockerfile
Normal file
4
docs/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM joseluisq/static-web-server:2
|
||||||
|
|
||||||
|
COPY ./www /public
|
||||||
|
|
@ -56,6 +56,7 @@
|
|||||||
"app": "tsc && node lib/index.js",
|
"app": "tsc && node lib/index.js",
|
||||||
"prepare": "pnpm run build",
|
"prepare": "pnpm run build",
|
||||||
"docs:build": "typedoc --options typedoc.json",
|
"docs:build": "typedoc --options typedoc.json",
|
||||||
|
"docs:build:docker": "pnpm run docs:build && docker image build docs -t ${DOCKER_REGISTRY}/extollo/docs:latest && docker push ${DOCKER_REGISTRY}/extollo/docs:latest",
|
||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"lint:fix": "eslint --fix . --ext .ts"
|
"lint:fix": "eslint --fix . --ext .ts"
|
||||||
},
|
},
|
||||||
|
@ -11,12 +11,7 @@ import {ErrorWithContext, uuid4, fetch} from '../../../util'
|
|||||||
export class CoreIDLoginProvider extends OAuth2LoginProvider<OAuth2LoginProviderConfig> {
|
export class CoreIDLoginProvider extends OAuth2LoginProvider<OAuth2LoginProviderConfig> {
|
||||||
protected async callback(request: Request): Promise<Authenticatable> {
|
protected async callback(request: Request): Promise<Authenticatable> {
|
||||||
// Get authentication_code from the request
|
// Get authentication_code from the request
|
||||||
const code = String(request.input('code') || '')
|
const code = request.safe('code').string()
|
||||||
if ( !code ) {
|
|
||||||
throw new ErrorWithContext('Unable to authenticate user: missing login code', {
|
|
||||||
input: request.input(),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get OAuth2 token from CoreID
|
// Get OAuth2 token from CoreID
|
||||||
const token = await this.getToken(code)
|
const token = await this.getToken(code)
|
||||||
|
Loading…
Reference in New Issue
Block a user