Last active
April 23, 2020 13:01
-
-
Save dmnkgrc/8736e65da387ee28e78bfe905f642fb3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| "title": "Person", | |
| "type": "object", | |
| "properties": { | |
| "email": { | |
| "description": "The user's email address.", | |
| "type": "string", | |
| "format": "email", | |
| "title": "E-Mail", | |
| "ory.sh/kratos": { | |
| "mappings": { | |
| "identity": { | |
| "traits": [ | |
| { | |
| "path": "email" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "family_name": { | |
| "description": "The user's last name.", | |
| "type": "string", | |
| "ory.sh/kratos": { | |
| "mappings": { | |
| "identity": { | |
| "traits": [ | |
| { | |
| "path": "family_name" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "given_name": { | |
| "description": "The user's first name.", | |
| "type": "string", | |
| "ory.sh/kratos": { | |
| "mappings": { | |
| "identity": { | |
| "traits": [ | |
| { | |
| "path": "given_name" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "name": { | |
| "description": "The user's full name.", | |
| "type": "string", | |
| "ory.sh/kratos": { | |
| "mappings": { | |
| "identity": { | |
| "traits": [ | |
| { | |
| "path": "name" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "picture": { | |
| "description": "URL of the user's picture image.", | |
| "type": "string", | |
| "ory.sh/kratos": { | |
| "mappings": { | |
| "identity": { | |
| "traits": [ | |
| { | |
| "path": "picture" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "required": ["email"] | |
| } |
This file contains hidden or 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
| [ | |
| { | |
| "id": "ory:kratos:public", | |
| "upstream": { | |
| "preserve_host": true, | |
| "url": "http://onefootball-kratos-public:4433", | |
| "strip_path": "/.ory/kratos/public" | |
| }, | |
| "match": { | |
| "url": "http://127.0.0.1:4455/.ory/kratos/public/<.*>", | |
| "methods": ["GET", "POST", "PUT", "DELETE", "PATCH"] | |
| }, | |
| "authenticators": [ | |
| { | |
| "handler": "noop" | |
| } | |
| ], | |
| "authorizer": { | |
| "handler": "allow" | |
| }, | |
| "mutators": [ | |
| { | |
| "handler": "noop" | |
| } | |
| ] | |
| }, | |
| { | |
| "id": "auth-ui:anonymous", | |
| "upstream": { | |
| "preserve_host": true, | |
| "url": "http://onefootball-auth-v2:8080" | |
| }, | |
| "match": { | |
| "url": "http://127.0.0.1:4455/<(error|verify|login|consent|register|auth/login|auth/registration|check-permissions|(.+\\.(css|svg|js|woff2|ico|jpg)))(|/)>", | |
| "methods": ["GET", "POST"] | |
| }, | |
| "authenticators": [ | |
| { | |
| "handler": "anonymous" | |
| } | |
| ], | |
| "authorizer": { | |
| "handler": "allow" | |
| }, | |
| "mutators": [ | |
| { | |
| "handler": "noop" | |
| } | |
| ] | |
| }, | |
| { | |
| "id": "auth-ui:protected", | |
| "upstream": { | |
| "preserve_host": true, | |
| "url": "http://onefootball-auth-v2:8080" | |
| }, | |
| "match": { | |
| "url": "http://127.0.0.1:4455<(/debug|/|/dashboard|/profile|)(|/)>", | |
| "methods": ["GET"] | |
| }, | |
| "authenticators": [ | |
| { | |
| "handler": "cookie_session" | |
| } | |
| ], | |
| "authorizer": { | |
| "handler": "keto_engine_acp_ory", | |
| "config": { | |
| "required_action": "view:dashboard", | |
| "required_resource": "onefootball:admin", | |
| "subject": "{{ .Extra.identity.traits.email }}", | |
| "flavor": "exact" | |
| } | |
| }, | |
| "mutators": [ | |
| { | |
| "handler": "id_token" | |
| } | |
| ], | |
| "errors": [ | |
| { | |
| "handler": "redirect", | |
| "config": { | |
| "to": "http://127.0.0.1:4455/.ory/kratos/public/self-service/browser/flows/login", | |
| "when": [ | |
| { | |
| "error": ["unauthorized"], | |
| "request": { | |
| "header": { | |
| "accept": ["text/*"] | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "id": "fake-users-module:protected", | |
| "upstream": { | |
| "preserve_host": true, | |
| "url": "http://onefootball-auth-v2:8080" | |
| }, | |
| "match": { | |
| "url": "http://127.0.0.1:4455/users", | |
| "methods": ["GET"] | |
| }, | |
| "authenticators": [ | |
| { | |
| "handler": "cookie_session" | |
| } | |
| ], | |
| "authorizer": { | |
| "handler": "keto_engine_acp_ory", | |
| "config": { | |
| "required_action": "view:users", | |
| "required_resource": "onefootball:admin:users", | |
| "subject": "{{ .Extra.identity.traits.email }}", | |
| "flavor": "exact" | |
| } | |
| }, | |
| "mutators": [ | |
| { | |
| "handler": "id_token" | |
| } | |
| ], | |
| "errors": [ | |
| { | |
| "handler": "redirect", | |
| "config": { | |
| "to": "http://127.0.0.1:4455/.ory/kratos/public/self-service/browser/flows/login", | |
| "when": [ | |
| { | |
| "error": ["unauthorized"], | |
| "request": { | |
| "header": { | |
| "accept": ["text/html"] | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| ] |
This file contains hidden or 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
| { | |
| "title":"Person", | |
| "type":"object", | |
| "properties":{ | |
| "email":{ | |
| "description":"The user's email address.", | |
| "type":"string", | |
| "format": "email", | |
| "title": "E-Mail" | |
| }, | |
| "family_name":{ | |
| "description":"The user's last name.", | |
| "type":"string" | |
| }, | |
| "gender":{ | |
| "description":"The user's gender.", | |
| "type":"string" | |
| }, | |
| "given_name":{ | |
| "description":"The user's first name.", | |
| "type":"string" | |
| }, | |
| "hd":{ | |
| "description":"The hosted domain e.g. example.com if the user is Google apps user.", | |
| "type":"string" | |
| }, | |
| "id":{ | |
| "description":"The obfuscated ID of the user.", | |
| "type":"string" | |
| }, | |
| "link":{ | |
| "description":"URL of the profile page.", | |
| "type":"string" | |
| }, | |
| "locale":{ | |
| "description":"The user's preferred locale.", | |
| "type":"string" | |
| }, | |
| "name":{ | |
| "description":"The user's full name.", | |
| "type":"string" | |
| }, | |
| "picture":{ | |
| "description":"URL of the user's picture image.", | |
| "type":"string" | |
| }, | |
| "verified_email":{ | |
| "default":"true", | |
| "description":"Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.", | |
| "type":"boolean" | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment