✨ feat(auth): OIDC HTTP handlers /start + /callback (ADR-0028 Phase B.4) (#75)
Co-authored-by: Gabriel Radureau <arcodange@gmail.com> Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
This commit was merged in pull request #75.
This commit is contained in:
@@ -94,6 +94,21 @@ func NewOIDCClient(issuerURL, clientID, clientSecret string) *OIDCClient {
|
||||
}
|
||||
}
|
||||
|
||||
// ClientID returns the OIDC client ID.
|
||||
func (c *OIDCClient) ClientID() string {
|
||||
return c.clientID
|
||||
}
|
||||
|
||||
// IssuerURL returns the OIDC issuer URL.
|
||||
func (c *OIDCClient) IssuerURL() string {
|
||||
return c.issuerURL
|
||||
}
|
||||
|
||||
// SetHTTPClient sets a custom HTTP client for testing.
|
||||
func (c *OIDCClient) SetHTTPClient(client *http.Client) {
|
||||
c.httpClient = client
|
||||
}
|
||||
|
||||
// decodeRSAPublicKey reconstructs an *rsa.PublicKey from JWK n and e values.
|
||||
func decodeRSAPublicKey(j jwk) (*rsa.PublicKey, error) {
|
||||
nBytes, err := base64.RawURLEncoding.DecodeString(j.N)
|
||||
|
||||
Reference in New Issue
Block a user