Merge remote-tracking branch 'origin/master' into deps-updates

This commit is contained in:
SleepWalker 2019-12-25 13:33:42 +02:00
commit 8e95fd835e
2 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ describe('OAuthState', () => {
client_id: 'client_id', client_id: 'client_id',
redirect_uri: 'redirect_uri', redirect_uri: 'redirect_uri',
response_type: 'response_type', response_type: 'response_type',
scope: 'scope1,scope2', scope: 'scope1,scope2,scope3',
state: 'state', state: 'state',
}; };
@ -138,7 +138,7 @@ describe('OAuthState', () => {
clientId: query.client_id, clientId: query.client_id,
redirectUrl: query.redirect_uri, redirectUrl: query.redirect_uri,
responseType: query.response_type, responseType: query.response_type,
scope: 'scope1 scope2', scope: 'scope1 scope2 scope3',
state: query.state, state: query.state,
}), }),
).returns({ then() {} }); ).returns({ then() {} });

View File

@ -11,7 +11,7 @@ export default class OAuthState extends AbstractState {
redirectUrl: query.get('redirect_uri'), redirectUrl: query.get('redirect_uri'),
responseType: query.get('response_type'), responseType: query.get('response_type'),
description: query.get('description'), description: query.get('description'),
scope: (query.get('scope') || '').replace(',', ' '), scope: (query.get('scope') || '').replace(/,/g, ' '),
prompt: query.get('prompt'), prompt: query.get('prompt'),
loginHint: query.get('login_hint'), loginHint: query.get('login_hint'),
state: query.get('state'), state: query.get('state'),