forked from flownative/flow-openidconnect-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove "cookieName" configuration and assume "<serviceName>-jwt" as cookie name * Adjust `SetJwtCookieComponent` to handle logout (remove JWT cookie and trigger redirect) if `?logout=<serviceName>` query parameter is present Closes: flownative#2
- Loading branch information
1 parent
869c229
commit 35d1eeb
Showing
5 changed files
with
119 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,67 @@ | ||
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) | ||
[![Packagist](https://img.shields.io/packagist/v/flownative/openidconnect-client.svg)](https://packagist.org/packages/flownative/openidconnect-client) | ||
[![Maintenance level: Love](https://img.shields.io/badge/maintenance-%E2%99%A1%E2%99%A1%E2%99%A1-ff69b4.svg)](https://www.flownative.com/en/products/open-source.html) | ||
|
||
# OpenID Connect Client for Flow Framework | ||
|
||
This [Flow](https://flow.neos.io) package provides an [OpenID Connect](https://openid.net/connect/) client SDK. | ||
|
||
Note: this package is at an early stage, breaking changes may be released without further warning ... | ||
|
||
## Configuration | ||
|
||
Flownative: | ||
OpenIdConnect: | ||
Client: | ||
services: [] | ||
exampleService: | ||
options: | ||
discoveryUri: 'https://example.com/.well-known/openid-configuration' | ||
clientId: '@!EDD5.370D.8247.FED9!0001!B1C9.92C1!1008!13DB.54D8.65DE.2761' | ||
clientSecret: 'very-secret' | ||
|
||
Neos: | ||
Flow: | ||
http: | ||
chain: | ||
'postprocess': | ||
chain: | ||
'Flownative.OpenIdConnect.Client:setJwtCookie': | ||
componentOptions: | ||
cookieName: 'your-own-cookie-name-jwt' | ||
secureCookie: false | ||
|
||
security: | ||
authentication: | ||
providers: | ||
'Flownative.OpenIdConnect.Client:OidcProvider': | ||
label: 'OpenID Connect' | ||
provider: 'Flownative\OpenIdConnect\Client\Authentication\OpenIdConnectProvider' | ||
providerOptions: | ||
roles: ['Acme.MyPackage:User'] | ||
accountIdentifierTokenValueName: 'inum' | ||
jwtCookieName: 'your-own-cookie-name-jwt' | ||
serviceName: 'exampleService' | ||
token: 'Flownative\OpenIdConnect\Client\Authentication\OpenIdConnectToken' | ||
requestPatterns: | ||
'Acme.MyPackage:Frontend': | ||
pattern: 'Acme\MyPackage\Security\SiteRequestPattern' | ||
patternOptions: | ||
'siteNodeName': 'mysite' | ||
'matchFrontend': true | ||
entryPoint: 'Flownative\OpenIdConnect\Client\Authentication\OpenIdConnectEntryPoint' | ||
entryPointOptions: | ||
serviceName: 'acmeservice' | ||
scopes: ['inum', 'user_name', 'sap_custno'] | ||
|
||
## Authentication Flow | ||
|
||
Authentication works as follows: | ||
|
||
... | ||
|
||
## About OpenID Connect | ||
|
||
See also: | ||
|
||
https://openid.net/specs/openid-connect-basic-1_0.html | ||
https://connect2id.com/learn/openid-connect | ||
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) | ||
[![Packagist](https://img.shields.io/packagist/v/flownative/openidconnect-client.svg)](https://packagist.org/packages/flownative/openidconnect-client) | ||
[![Maintenance level: Love](https://img.shields.io/badge/maintenance-%E2%99%A1%E2%99%A1%E2%99%A1-ff69b4.svg)](https://www.flownative.com/en/products/open-source.html) | ||
|
||
# OpenID Connect Client for Flow Framework | ||
|
||
This [Flow](https://flow.neos.io) package provides an [OpenID Connect](https://openid.net/connect/) client SDK. | ||
|
||
Note: this package is at an early stage, breaking changes may be released without further warning ... | ||
|
||
## Configuration | ||
|
||
Flownative: | ||
OpenIdConnect: | ||
Client: | ||
services: [] | ||
exampleService: | ||
options: | ||
discoveryUri: 'https://example.com/.well-known/openid-configuration' | ||
clientId: '@!EDD5.370D.8247.FED9!0001!B1C9.92C1!1008!13DB.54D8.65DE.2761' | ||
clientSecret: 'very-secret' | ||
|
||
Neos: | ||
Flow: | ||
http: | ||
chain: | ||
'postprocess': | ||
chain: | ||
'Flownative.OpenIdConnect.Client:setJwtCookie': | ||
componentOptions: | ||
serviceName: 'acmeservice' | ||
secureCookie: false | ||
|
||
security: | ||
authentication: | ||
providers: | ||
'Flownative.OpenIdConnect.Client:OidcProvider': | ||
label: 'OpenID Connect' | ||
provider: 'Flownative\OpenIdConnect\Client\Authentication\OpenIdConnectProvider' | ||
providerOptions: | ||
roles: ['Acme.MyPackage:User'] | ||
accountIdentifierTokenValueName: 'inum' | ||
serviceName: 'acmeservice' | ||
token: 'Flownative\OpenIdConnect\Client\Authentication\OpenIdConnectToken' | ||
requestPatterns: | ||
'Acme.MyPackage:Frontend': | ||
pattern: 'Acme\MyPackage\Security\SiteRequestPattern' | ||
patternOptions: | ||
'siteNodeName': 'mysite' | ||
'matchFrontend': true | ||
entryPoint: 'Flownative\OpenIdConnect\Client\Authentication\OpenIdConnectEntryPoint' | ||
entryPointOptions: | ||
serviceName: 'acmeservice' | ||
scopes: ['inum', 'user_name', 'sap_custno'] | ||
|
||
## Authentication Flow | ||
|
||
Authentication works as follows: | ||
|
||
... | ||
|
||
## About OpenID Connect | ||
|
||
See also: | ||
|
||
https://openid.net/specs/openid-connect-basic-1_0.html | ||
https://connect2id.com/learn/openid-connect |