Simplify Integration of ADAL #81
Labels
auth
Concerns plugin that deal with authentication and authorization,
core
Concerns the piral-core library.
enhancement
New feature or request
plugin
Covered by an opt-in plugin for Piral.
Milestone
Description
Right now we have
piral-auth
a plugin that establishes a user object. However, it does not directly deal with authorization / authentication. We should provide some premade solutions (in form of plugins) for dealing with popular providers. Microsoft's Active Directory is a quite popular way - we should support it directly.Background
Microsoft released several libraries for dealing with AD authentication from JS. The latest version is called MSAL.js.
Potentially, just wrapping the plugin and exposing it via some actions. An integration with, e.g.,
fetch
orurql
would be superb (e.g., indirectly via events) to ensure a valid token is provided if necessary.Discussion
Configuration etc. should just be taken / extended from the original. What other solutions (generic OAuth 2? or already OIDC?) should be available in form of plugins?
The text was updated successfully, but these errors were encountered: