-
Notifications
You must be signed in to change notification settings - Fork 184
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
sso: okta provider MVP #174
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jusshersmith
force-pushed
the
jusshersmith-okta-provider-test
branch
from
April 10, 2019 17:13
a491f74
to
6d26a94
Compare
jphines
reviewed
Apr 11, 2019
jphines
reviewed
Apr 11, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 15, 2019
jphines
reviewed
Apr 17, 2019
jphines
reviewed
Apr 22, 2019
jphines
reviewed
Apr 22, 2019
jphines
reviewed
Apr 22, 2019
@Jusshersmith this is looking really good, just a few nits about testing and arg validation! |
Jusshersmith
force-pushed
the
jusshersmith-okta-provider-test
branch
from
April 23, 2019 15:36
43a7344
to
1e46141
Compare
validateToken validateToken, groups and email tidy validateToken UserInfo UserInfo continued Might be worth splitting this function up so it can serve different purposes if required in the future. However for now it does the job. some cleanup and fix group validation change default to google cleaning up updating comments removng BaseURL from provider for now removing BaseURL from options and modifying UserInfoURL and RevokeURL fix tags removing BaseURL from provider_data add offline_access for refresh token tidying add empty line back in separate validateToken into respective provider packages review changes change from oktapreview to okta rename UserInfo to GetUserProfile removing validateToken func and tests extra oktapreview -> okta add initial test file skipping while debugging fixing TestValidateEndpoint tests removing skip check response contents to properly validate removing debug output changes from review, and adding relevant test case use test logger instead of stdlib logger use %q instead of %s to quote formatted output moving formatting to options.go, and reducing repetition move logic to more relevant function set entire org url rather than just org name fixing test
Jusshersmith
force-pushed
the
jusshersmith-okta-provider-test
branch
from
April 24, 2019 13:23
470925b
to
5edbfbd
Compare
jphines
approved these changes
Apr 24, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Okta provider integration
This implements the MVP for adding Okta as an oauth provider for SSO.
Documentation on set up of Okta resources in a separate PR: #182
This PR includes:
okta_org_url
which is the URL of the org's okta domain (e.g. test.okta.com))internal_util.go
and it's tests package to separate logic into respective provider packages.internal_util.go
provdider_default.go
to work with the changes tointernal_util.go
One notable thing missing is any group caching functionality - this will also be shipped in a separate, soon-to-come PR.