Skip to content

Commit

Permalink
chore: update repository templates
Browse files Browse the repository at this point in the history
[skip ci] - updated repository templates to ory/meta@efda325
  • Loading branch information
aeneasr committed Dec 6, 2021
1 parent 4a734a2 commit 21b470d
Show file tree
Hide file tree
Showing 10 changed files with 138 additions and 103 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,18 @@ that your company deserves a spot here, reach out to
<td>Security Onion Solutions</td>
<td align="center"><img height="32px" src="https://raw.githubusercontent.com/ory/meta/master/static/adopters/securityonion.svg" alt="Security Onion Solutions"></td>
<td><a href="https://securityonionsolutions.com/">securityonionsolutions.com</a></td>
</tr>
<tr>
<td>Adopter *</td>
<td>Factly</td>
<td align="center"><img height="32px" src="https://raw.githubusercontent.com/ory/meta/master/static/adopters/factly.svg" alt="Factly"></td>
<td><a href="https://factlylabs.com/">factlylabs.com</a></td>
</tr>
<tr>
<td>Adopter *</td>
<td>Nortal</td>
<td align="center"><img height="32px" src="https://raw.githubusercontent.com/ory/meta/master/static/adopters/nortal.svg" alt="Nortal"></td>
<td><a href="https://nortal.com/">nortal.com</a></td>
</tr>
<tr>
<td>Sponsor</td>
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/concepts/consent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,13 @@ request! For more details about the implementation check the
]}>
<TabItem value="ui">


![Exemplary OAuth 2.0 Consent Screen](../images/consent-endpoint.png)

</TabItem>
<TabItem value="curl">


```shell script
$ curl \
"http://127.0.0.1:4445/oauth2/auth/requests/consent?consent_challenge=7bb518c4eec2454dbb289f5fdb4c0ee2"
Expand All @@ -167,6 +169,7 @@ examples using the ORY Hydra SDK in different languages.
</TabItem>
<TabItem value="json">


```json
{
"challenge": "f633e49d56bc40e0a876ac8242eb9891",
Expand Down Expand Up @@ -213,6 +216,7 @@ examples using the ORY Hydra SDK in different languages.
</TabItem>
</Tabs>


The way you collect the consent information from the End-User is up to you. In
most cases, you will show an HTML form similar to:

Expand Down
8 changes: 8 additions & 0 deletions docs/docs/concepts/login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ correct endpoint for your interactions.
]}>
<TabItem value="ui">


![OAuth 2.0 Client](../images/oauth2-consumer.png)

</TabItem>
<TabItem value="html">


```html
<a
href="https://<hydra-public>/oauth2/auth?client_id=...&response_type=...&scope=..."
Expand All @@ -94,6 +96,7 @@ correct endpoint for your interactions.
</TabItem>
<TabItem value="js">


```js
// ...
window.location.href =
Expand All @@ -103,6 +106,7 @@ window.location.href =
</TabItem>
</Tabs>


## Redirection to the Login Endpoint

The next task for ORY Hydra is to know the user of the request. To achieve that,
Expand Down Expand Up @@ -202,11 +206,13 @@ more details about the implementation check the
]}>
<TabItem value="ui">


![OAuth 2.0 Login UI Screen](../images/login-endpoint.png)

</TabItem>
<TabItem value="curl">


```
curl "http://127.0.0.1:4445/oauth2/auth/requests/login?login_challenge=7bb518c4eec2454dbb289f5fdb4c0ee2"
```
Expand All @@ -217,6 +223,7 @@ examples using the ORY Hydra SDK in different languages.
</TabItem>
<TabItem value="json">


```json
{
"challenge": "7bb518c4eec2454dbb289f5fdb4c0ee2",
Expand Down Expand Up @@ -255,6 +262,7 @@ examples using the ORY Hydra SDK in different languages.
</TabItem>
</Tabs>


The way you authenticate the End-User is up to you. In most cases, you will show
an HTML form similar to:

Expand Down
2 changes: 2 additions & 0 deletions docs/docs/guides/consent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ access to ORY Hydra's Admin Endpoint!
]}>
<TabItem value="ui">


![OAuth2 Consent UI Screen](../images/consent-endpoint.png)

</TabItem>
Expand All @@ -58,6 +59,7 @@ access to ORY Hydra's Admin Endpoint!
</TabItem>
</Tabs>


## Accepting the Consent Request

<Tabs defaultValue="node" values={[{ label: 'NodeJS', value: 'node' }]}>
Expand Down
8 changes: 8 additions & 0 deletions docs/docs/guides/login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ access to ORY Hydra's Admin Endpoint!
]}>
<TabItem value="ui">


![OAuth2 Login UI Screen](../images/login-endpoint.png)

</TabItem>
<TabItem value="node">


:::note

Check out our
Expand Down Expand Up @@ -102,6 +104,7 @@ router.get('/login', csrfProtection, (req, res, next) => {
</TabItem>
<TabItem value="html">


```html
<form action="/login" method="POST">
<input type="hidden" name="_csrf" value="{{ csrfToken }}" />
Expand All @@ -119,6 +122,7 @@ router.get('/login', csrfProtection, (req, res, next) => {
</TabItem>
</Tabs>


## Accepting the Login Request

<Tabs
Expand All @@ -128,6 +132,7 @@ router.get('/login', csrfProtection, (req, res, next) => {
]}>
<TabItem value="node">


:::note

Check out our
Expand Down Expand Up @@ -186,6 +191,7 @@ router.post('/login', csrfProtection, (req, res, next) => {
</TabItem>
</Tabs>


## Rejecting the Login Request

<Tabs
Expand All @@ -195,6 +201,7 @@ router.post('/login', csrfProtection, (req, res, next) => {
]}>
<TabItem value="node">


```typescript
// You can deny the login request at any point - for example if the system is currently undergoing maintenance
// or the user has been banned, is not allowed to use OAuth2 flows, and so on:
Expand All @@ -211,3 +218,4 @@ hydraAdmin

</TabItem>
</Tabs>

8 changes: 8 additions & 0 deletions docs/docs/guides/logout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ access to ORY Hydra's Admin Endpoint!
]}>
<TabItem value="ui">


![OAuth2 Logout UI Screen](../images/logout-endpoint.png)

</TabItem>
<TabItem value="node">


:::note

Check out our
Expand Down Expand Up @@ -94,6 +96,7 @@ router.get('/', csrfProtection, (req, res, next) => {
</TabItem>
<TabItem value="html">


```html
<form action="/logout" method="POST">
<input type="hidden" name="_csrf" value="{{ .csrfToken }}" />
Expand All @@ -106,6 +109,7 @@ router.get('/', csrfProtection, (req, res, next) => {
</TabItem>
</Tabs>


## Accepting Logout

<Tabs
Expand All @@ -115,6 +119,7 @@ router.get('/', csrfProtection, (req, res, next) => {
]}>
<TabItem value="node">


:::note

Check out our
Expand All @@ -141,6 +146,7 @@ router.post('/logout', csrfProtection, (req, res, next) => {
</TabItem>
</Tabs>


## Rejecting Logout

<Tabs
Expand All @@ -150,6 +156,7 @@ router.post('/logout', csrfProtection, (req, res, next) => {
]}>
<TabItem value="node">


:::note

Check out our
Expand All @@ -176,3 +183,4 @@ router.post('/logout', csrfProtection, (req, res, next) => {

</TabItem>
</Tabs>

Loading

0 comments on commit 21b470d

Please sign in to comment.