Open zehavibarak opened 3 years ago
BizDoc comes with built-in authentication providers, such as Okta and Directory Services.
In some cases, developer would want to create thier own identity provider, to meet thier implementation needs.
To create your own provider, follow these steps:
1) create a class and implement IIdentityManager. The IIdentityManager returns users and roles.
public Task<IEnumerable<IdentityInfo>> ListAsync(string name) { ... } public Task<IdentityInfo> FindAsync(string identity) { ... }
The ListAsync() method above returns a collection of IdentityInfo struct.
2) Add the implementation class as a service in startup.cs.
services.AddBizDoc(). AddIdentityManager<IdentityUserProvider>();
Remove any reference you may have to AspIdentity in startup.cs.
BizDoc comes with built-in authentication providers, such as Okta and Directory Services.
In some cases, developer would want to create thier own identity provider, to meet thier implementation needs.
To create your own provider, follow these steps:
1) create a class and implement IIdentityManager. The IIdentityManager returns users and roles.
The ListAsync() method above returns a collection of IdentityInfo struct.
2) Add the implementation class as a service in startup.cs.