I am using Client Credential Flow like below
- public override Task ValidateClientAuthentication(OAuthValidateClientAuthenticationContext context)
- {
- string clientId;
- string clientSecret;
- context.TryGetFormCredentials(out clientId, out clientSecret);
-
- if (clientId == "qwe32" && clientSecret == "fgg45")
- {
- context.Validated(clientId);
- }
-
- return base.ValidateClientAuthentication(context);
- }
- what is the best way to generate Client Id and Secret (my approach:- Guid/RandomNumber +Encryption)
- How to provide Client Id and Secret to API Client (like Fb/Google has developer dasboard) ,do we need to create a dashboard ?