mirror of
https://github.com/minio/minio.git
synced 2026-11-09 00:41:11 +00:00
fix: missing code for browser for OIDC (#12355)
This commit is contained in:
1 parent
f01820a4ee
commit
c09fe2c40e
3 files changed
+21351
-25
No files matched your search
@@ -14,3 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export const OPEN_ID_NONCE_KEY = 'openIDKey'
|
||||
|
||||
export const buildOpenIDAuthURL = (authEp, authScopes, redirectURI, clientID, nonce) => {
|
||||
const params = new URLSearchParams()
|
||||
params.set("response_type", "id_token")
|
||||
params.set("scope", authScopes.join(" "))
|
||||
params.set("client_id", clientID)
|
||||
params.set("redirect_uri", redirectURI)
|
||||
params.set("nonce", nonce)
|
||||
|
||||
return `${authEp}?${params.toString()}`
|
||||
}
|
||||
Reference in new issue
Block a user