Method GenerateOAuth2Url
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GenerateOAuth2Url(string, string, bool)
Generates an OAuth2 url.
public Uri GenerateOAuth2Url(string scopes, string state, bool suppressPrompt = false)
Parameters
scopes
stringThe space seperated scopes to request.
state
stringThe state to use for security reasons. Use GenerateState() or GenerateSecureState(ulong).
suppressPrompt
boolWhether to suppress the prompt. Works only if previously authorized with same scopes.
Returns
- Uri
The OAuth2 url