-
Notifications
You must be signed in to change notification settings - Fork 100
Authority validation todos #181
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
Conversation
| // todo: check for other authority types... | ||
| authorityType := "MSSTS" | ||
|
|
||
| var authorityType string |
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.
We do this in resolvers.go here
We delay doing this here because we want to avoid making a network call unless absolutely needed. So this code wont run while initializing app object here.
| err := c.Comm.JSONCall( | ||
| ctx, | ||
| endpoint, | ||
| // TODO(jdoak): not thrilled about this, because all calls should have this but |
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 think we add Correlation Id to all the calls that are part of a user flow for telemetry. I see thats what we do in MSAL Python. It was added here : AzureAD/microsoft-authentication-library-for-python#103
Could not find a spec though. @henrik-me thoughts ?
apps/internal/oauth/resolvers.go
Outdated
| } | ||
|
|
||
| return resp.TenantDiscoveryEndpoint, nil | ||
| } else if authorityInfo.Tenant == "adfs" { |
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.
If you make this this first condition in the if block you can remove the != check that's currently on line 126.
…tion-library-for-go into authority_validation_todo
|
Kudos, SonarCloud Quality Gate passed!
|
Resolves #160