Skip to main content
Constructs a Riot Sign-On (RSO) OAuth authorization URL. This is a synchronous method — no await needed. Returns: str — the constructed authorization URL

Example

OAuth2 Flow

  1. Call create_RSO_link to generate the authorization URL
  2. Redirect the user to that URL
  3. The user logs in and grants permissions
  4. Riot redirects back to your redirect_uri with an authorization code
  5. Exchange the code for an access token (via Riot’s token endpoint)
  6. Use the access token with GET_getByAccessToken
Always validate the state parameter in your callback to prevent CSRF attacks.