Skip to content
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

OIDC Conformant toggle #361

Merged
merged 7 commits into from
Dec 31, 2016
Merged

OIDC Conformant toggle #361

merged 7 commits into from
Dec 31, 2016

Conversation

cocojoe
Copy link
Member

@cocojoe cocojoe commented Dec 22, 2016

No description provided.

Added flags for pipeline mode and audience
Database/Enterprise Logins support new pipeline
WebAuth added audience supportg
Legacy flag
Tests updated
@cocojoe cocojoe changed the title Feature pipeline mode (Provisional) Feature OIDC Conformant Dec 29, 2016
@cocojoe
Copy link
Member Author

cocojoe commented Dec 29, 2016

Only missing functionality at this point is confirmed MFA support, this has been provisioned into an Auth0.Swift PR based upon params being the same as legacy mode. Once confirmed in Auth0.Swift, can be added to this PR.

@cocojoe cocojoe added this to the 2.0.0-rc.2 milestone Dec 30, 2016
@hzalaz hzalaz changed the title Feature OIDC Conformant OIDC Conformant toggle Dec 30, 2016
@@ -36,6 +36,7 @@ struct Auth0OAuth2Interactor: OAuth2Authenticatable {
.connection(connection)
.scope(self.options.scope)
.parameters(parameters)
.audience(self.options.audience ?? "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is yet another hack, we should not send audience if it's not specified

parameters: self.options.parameters
)
.start { self.handle(result: $0, callback: callback) }
if self.options.oidcConformant {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this pattern a couple of times, wouldn't it better to just abstract this away?.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also since both methods return the same request we can just start it in one place

@hzalaz hzalaz merged commit 5e5b623 into v2 Dec 31, 2016
@hzalaz hzalaz deleted the feature_pipeline_mode branch December 31, 2016 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants