mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Add client_id support for OpenID (#8579)
- One click OpenID authorization on Login page - Add client_id help, config keys etc Thanks to @egorkaru @ihostage for the original work and testing.
This commit is contained in:
@@ -1909,12 +1909,14 @@ func presignedGet(host, bucket, object string, expiry int64, creds auth.Credenti
|
||||
type DiscoveryDocResp struct {
|
||||
DiscoveryDoc openid.DiscoveryDoc
|
||||
UIVersion string `json:"uiVersion"`
|
||||
ClientID string `json:"clientId"`
|
||||
}
|
||||
|
||||
// GetDiscoveryDoc - returns parsed value of OpenID discovery document
|
||||
func (web *webAPIHandlers) GetDiscoveryDoc(r *http.Request, args *WebGenericArgs, reply *DiscoveryDocResp) error {
|
||||
if globalOpenIDConfig.DiscoveryDoc.AuthEndpoint != "" {
|
||||
reply.DiscoveryDoc = globalOpenIDConfig.DiscoveryDoc
|
||||
reply.ClientID = globalOpenIDConfig.ClientID
|
||||
}
|
||||
reply.UIVersion = browser.UIVersion
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user