Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tokenResponse = await protocolClient.RequestClientCredentialsTokenAsync(new ClientCredentialsTokenRequest
- {
- Address = disco.TokenEndpoint,
- ClientId = ServiceIdentity,
- ClientSecret = ServiceKey,
- Scope = "offline_access",
- GrantType = "GrantTypes.ClientCredentials"
- });
- return tokenResponse.AccessToken;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement