KA-Huis / space-management

The core application of the KA-Huis
https://ka-huis.github.io/space-management
Apache License 2.0
0 stars 0 forks source link

Setup OAuth on the acceptance environment for the Repair Tool #72

Open cyrildewit opened 2 years ago

cyrildewit commented 2 years ago

Analysis

There are different grant types available to authorise users to the REST API. Which one should we use for the authorisation flow of the Repair Tool.

Acceptance criteria

Resources

Advice

The grant type that we will use to authorise users from the Repair Tool will be Authorization Code Grant with PKCE. The legacy alternative would be Password Grant, but this is not recommended anymore. See https://oauth2.thephpleague.com/authorization-server/which-grant/.

This flow is considered best practice when using Single Page Apps (SPA) or Mobile Apps. From Onelog.com

Design

Realisation

Tasks