fix: missing code for browser for OIDC (#12355)

This commit is contained in:
Harshavardhana 2021-05-21 14:23:01 -07:00 committed by GitHub
parent f01820a4ee
commit c09fe2c40e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21351 additions and 25 deletions

View File

@ -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()}`
}

21362
browser/package-lock.json generated

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long