use original prompt default value to avoid a breaking change
Signed-off-by: Morgan Martinet <morgan@mmm-experts.com>
This commit is contained in:
@@ -73,12 +73,16 @@ export class OidcAuthProvider implements OAuthHandlers {
|
||||
|
||||
async start(req: OAuthStartRequest): Promise<RedirectInfo> {
|
||||
const { strategy } = await this.implementation;
|
||||
return await executeRedirectStrategy(req, strategy, {
|
||||
const options: Record<string, string> = {
|
||||
accessType: 'offline',
|
||||
prompt: this.prompt || '',
|
||||
scope: req.scope || this.scope || 'openid profile email',
|
||||
state: encodeState(req.state),
|
||||
});
|
||||
};
|
||||
const prompt = this.prompt || 'none';
|
||||
if (prompt !== 'auto') {
|
||||
options.prompt = prompt;
|
||||
}
|
||||
return await executeRedirectStrategy(req, strategy, options);
|
||||
}
|
||||
|
||||
async handler(
|
||||
|
||||
Reference in New Issue
Block a user