Skip to content

Commit

Permalink
feat(auth): Update Google authorization endpoint to not show disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
vbudhram committed May 24, 2023
1 parent b7c05ad commit 1ce264e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export default {
access_type: 'offline',
prompt: 'consent',
response_type: 'code',
disallow_webview: true,
ack_webview_shutdown:'2024-09-30'
};
/* eslint-enable camelcase */
for (const p in params) {
Expand Down Expand Up @@ -148,7 +150,7 @@ export default {
access_type: 'offline',
prompt: 'consent',
response_type: 'code id_token',
response_mode: 'form_post',
response_mode: 'form_post'
};
/* eslint-enable camelcase */
for (const p in params) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ describe('views/mixins/third-party-auth-mixin', function () {
assertInputEl(mockInput, 'access_type', 'offline');
assertInputEl(mockInput, 'prompt', 'consent');
assertInputEl(mockInput, 'response_type', 'code');
assertInputEl(mockInput, 'disallow_webview', 'true');
assertInputEl(mockInput, 'ack_webview_shutdown', '2024-09-30');

assert.equal(mockForm.appendChild.args.length, 7);
assert.equal(mockForm.appendChild.args.length, 9);
assert.isTrue(mockForm.submit.calledOnce);
});

Expand Down

0 comments on commit 1ce264e

Please sign in to comment.