Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jezzsantos committed Feb 11, 2024
1 parent 97091cb commit 0d9edfe
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docs/design-principles/0110-back-end-for-front-end.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ If the attempt to authenticate is successful, the authentication response from t

These "auth tokens" are then added to [HTTPOnly, secure] cookies that are then returned to the browser to be used between the browser and BEFFE for subsequent requests/responses.

![Authentication](../images/Authentication-Credentials.png)

At some point in time, either of those auth tokens will expire, at which point either the `access_token` can be refreshed (using the `refresh_token`), or the `refresh_tokesn` expires, and the end user will need to re-authenticate again.

#### Login
Expand All @@ -99,6 +97,8 @@ For example,
}
```

![Credentials Authentication](../images/Authentication-Credentials.png)

or with a body containing an SSO authentication code,

For example,
Expand All @@ -110,9 +110,11 @@ For example,
}
```

![SSO Authentication](../images/Authentication-SSO.png)

> Note: you will also need to include CSRF protection in these requests, like all others coming from a JS app.
A successful response from this request will yield the following body,
A successful response from either of these requests will yield the following body,

For example,

Expand All @@ -122,7 +124,7 @@ For example,
}
```

But it will also include these cookies (for the current domain):
But the response will also include these cookies (for the current domain):

`auth-tok=anaccesstoken`

Expand Down
Binary file modified docs/images/Authentication-SSO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/BEFFE-ReverseProxy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/Sources.pptx
Binary file not shown.
3 changes: 1 addition & 2 deletions src/IdentityApplication/ISingleSignOnApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ namespace IdentityApplication;
public interface ISingleSignOnApplication
{
Task<Result<AuthenticateTokens, Error>> AuthenticateAsync(ICallerContext context, string providerName,
string authCode,
string? username, CancellationToken cancellationToken);
string authCode, string? username, CancellationToken cancellationToken);
}
3 changes: 1 addition & 2 deletions src/IdentityApplication/SingleSignOnApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public class SingleSignOnApplication : ISingleSignOnApplication
private readonly ISSOProvidersService _ssoProvidersService;

public SingleSignOnApplication(IRecorder recorder, IEndUsersService endUsersService,
ISSOProvidersService ssoProvidersService,
IAuthTokensService authTokensService)
ISSOProvidersService ssoProvidersService, IAuthTokensService authTokensService)
{
_recorder = recorder;
_endUsersService = endUsersService;
Expand Down

0 comments on commit 0d9edfe

Please sign in to comment.