Skip to content

Commit

Permalink
docs: implicit grant diagram (#3590)
Browse files Browse the repository at this point in the history
  • Loading branch information
maduvena authored Jan 10, 2023
1 parent ac404ea commit f3f9937
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docs/admin/auth-server/oauth-features/implicit-grant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
tags:
- administration
- auth-server
- oauth
- feature
---

# OAuth 2.0 Implicit Grant

The [Implicit Grant](tools.ietf.org/html/rfc6749#section-1.3.2) :

!!! [OAuth 2.0 Security Best Current Practice](https://tools.ietf.org/html/draft-ietf-oauth-security-topics) absolutely discourages the use of Implicit flow.
Instead, use Authorization code flow with PKCE -[OAuth 2.0 for Browser-Based Apps](https://tools.ietf.org/html/draft-ietf-oauth-browser-based-apps).
[Further reading](https://oauth.net/2/grant-types/implicit/)


### Sequence Diagram

```mermaid
sequenceDiagram
title Implicit flow
autonumber 1
participant Resource owner User
Client->>Jans AS:Authorization Request
activate Client
activate Jans AS
Resource owner User ->>Jans AS:User login and consent
Jans AS-->>Client:Access Token in the URI fragment
deactivate Client
deactivate Jans AS
Client ->>Jans AS:Validate Access Token
activate Client
activate Jans AS
Jans AS-->>Client:Validate response
deactivate Client
deactivate Jans AS
Client ->>Web - Hosted client resource:Call API with Access Token
activate Client
activate Jans AS
Jans AS-->>Client:Protected resource
deactivate Client
deactivate Jans AS
```

0 comments on commit f3f9937

Please sign in to comment.