Skip to content
Closed

test #1467

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions credentials/u2m/endpoint_supplier.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ func (c *BasicOAuthEndpointSupplier) GetWorkspaceOAuthEndpoints(ctx context.Cont
// GetAccountOAuthEndpoints returns the OAuth2 endpoints for the account. The
// account-level OAuth endpoints are fixed based on the account ID and host.
func (c *BasicOAuthEndpointSupplier) GetAccountOAuthEndpoints(ctx context.Context, accountHost string, accountId string) (*OAuthAuthorizationServer, error) {
return &OAuthAuthorizationServer{
AuthorizationEndpoint: fmt.Sprintf("%s/oidc/accounts/%s/v1/authorize", accountHost, accountId),
TokenEndpoint: fmt.Sprintf("%s/oidc/accounts/%s/v1/token", accountHost, accountId),
}, nil
oidc := fmt.Sprintf("%s/oidc/.well-known/oauth-authorization-server", accountHost)
return c.getOAuthEndpointsByDiscoveryUrl(ctx, oidc)
}

// GetUnifiedOAuthEndpoints returns the OAuth2 endpoints for the unified host
Expand Down
Loading