Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var tokenResponse = await protocolClient.RequestClientCredentialsTokenAsync(new ClientCredentialsTokenRequest
  2. {
  3. Address = disco.TokenEndpoint,
  4. ClientId = ServiceIdentity,
  5. ClientSecret = ServiceKey,
  6. Scope = "offline_access",
  7. GrantType = "GrantTypes.ClientCredentials"
  8. });
  9. return tokenResponse.AccessToken;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement