mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
fix: missing code for browser for OIDC (#12355)
This commit is contained in:
@@ -14,3 +14,15 @@
|
|||||||
* limitations under the License.
|
* 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()}`
|
||||||
|
}
|
||||||
|
|||||||
Generated
+21338
-24
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user