-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Authorization fallback #1957
Conversation
@cramforce This is now ready for review. PTAL. |
@@ -350,6 +352,16 @@ export class AccessService { | |||
credentials: 'include', | |||
requireAmpResponseSourceOrigin: true | |||
})); | |||
}).catch(error => { | |||
this.analyticsEvent_('access-authorization-failed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write a test for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean the full function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Working on tests still as specified above. Will be available soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
6e527df
to
a7b0d4a
Compare
@cramforce PTAL. |
LGTM |
Closes #1906.
(No tests yet)
This RFC item proposes to add an optional "authorizationFallback" configuration property that will be used in case when the authorization fails.
/cc @jugglingcats, @ashwinlimaye, @sebastianbenz, @andreban