Home Docs Blog

Instead of Query string can I get access token in hash?

Auth.aspx page always returns token query string, can I get this token as a hash fragment instead of query string?

@shravan Welcome to LoginRadius Community.

You can leverage the benefits of LoginRadius OIDC implicit flow, where you can get the token in hash fragment by passing the response_type=token in the request.

Here you can find the document for OpenID Connect and the sample request for this.

https://cloud-api.loginradius.com/sso/oidc/v2/{oidcappname}/authorize?client_id={LoginRadius API key}&redirect_uri={Callback URL}&scope={Scope}&response_type=token&state={random long string}&scope=openid&nonce={Unique Generated nonce}

1 Like