Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix for #1750 - Hardcode tenant and authorize endpoints instead of OI… #1816

Merged
merged 2 commits into from
May 15, 2020

Conversation

bgavrilMS
Copy link
Member

…DC discovery

/// <summary>
/// Gets the authority endpoints based on the host and tenant id. Does not rely on OIDC discovery.
/// </summary>
internal abstract AuthorityEndpoints GetHardcodedEndpoints();
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: just for discussion...these are actually the authorization server endpoints...Does it make sense to call them what they are, verse authority endpoints? just seems confusing. really just a discussion point here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Happy to rename them, but maybe not Authorization endpoints because "authoirzation endpoint" is one of them. Myabe OAuth2Endpoints?

Copy link
Collaborator

Choose a reason for hiding this comment

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

OAuth2Endpoints make sense.

{
AuthorizationEndpoint = authorizationEndpoint;
TokenEndpoint = tokenEndpoint;
SelfSignedJwtAudience = selfSignedJwtAudience;
SelfSignedJwtAudience = tokenEndpoint;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is the tokenEndpoint?

Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

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

:shipit:

TokenEndpointTemplate,
AuthorityInfo.CanonicalAuthority);

string authEndpoint = string.Format(CultureInfo.InvariantCulture,
Copy link
Collaborator

Choose a reason for hiding this comment

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

authEndpoint [](start = 19, length = 12)

nit: call this authorizationEndpoint

@bgavrilMS bgavrilMS merged commit 058554c into master May 15, 2020
@jmprieur jmprieur deleted the bogavril/oidc branch May 29, 2020 08:31
@jmprieur jmprieur restored the bogavril/oidc branch May 29, 2020 08:31
@jmprieur jmprieur deleted the bogavril/oidc branch July 31, 2020 14:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants