TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sachin Singh
8
55.8k
81k
How to generate Client Id and Secret (best practise)
Aug 24 2020 10:14 PM
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 ?
Reply
Answers (
1
)
Calling a method with Ajax and returning a view
Read database table & column in notepad