2 | @if (User?.Identity?.IsAuthenticated ?? false)
3 | {
4 |
Welcome, @User.Identity.Name
5 |
6 |
7 | @foreach (var claim in Context.User.Claims)
8 | {
9 |
@claim.Type: @claim.Value
10 | }
11 |
12 |
13 |
Sign out
14 | }
15 |
16 | else
17 | {
18 |
Welcome, anonymous
19 |
Sign in
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/test/AspNet.Security.OAuth.Providers.Tests/Notion/bundle.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://raw.githubusercontent.com/justeat/httpclient-interception/master/src/HttpClientInterception/Bundles/http-request-bundle-schema.json",
3 | "items": [
4 | {
5 | "comment": "https://developers.notion.com/docs/authorization#authorizing-public-integrations",
6 | "uri": "https://api.notion.com/v1/oauth/token",
7 | "method": "POST",
8 | "contentFormat": "json",
9 | "contentJson": {
10 | "access_token": "someaccesstoken",
11 | "workspace_name": "mif",
12 | "workspace_icon": "icon",
13 | "bot_id": "mybot"
14 | }
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ### Provider name
2 |
3 |
6 |
7 | ### Expected behavior
8 |
9 |
12 |
13 | ### Actual behavior
14 |
15 |
18 |
19 | ### Steps to reproduce
20 |
21 |
24 |
25 | ### Additional information
26 |
27 |
30 |
--------------------------------------------------------------------------------
/docs/gitcode.md:
--------------------------------------------------------------------------------
1 | # Integrating the GitCode Provider
2 |
3 | ## Example
4 |
5 | ```csharp
6 | services.AddAuthentication(options => /* Auth configuration */)
7 | .AddGitCode(options =>
8 | {
9 | options.ClientId = "my-client-id";
10 | options.ClientSecret = "my-client-secret";
11 |
12 | // GitCode does not support setting scopes via requests to the API.
13 | // The configuration of scopes (App permissions) are instead managed
14 | // within the OAuth app management in GitCode itself.
15 | });
16 | ```
17 |
18 | ## Required Additional Settings
19 |
20 | _None._
21 |
22 | ## Optional Settings
23 |
24 | _None._
25 |
--------------------------------------------------------------------------------
/docs/zendesk.md:
--------------------------------------------------------------------------------
1 | # Integrating the Zendesk Provider
2 |
3 | ## Example
4 |
5 | ```csharp
6 | services.AddAuthentication(options => /* Auth configuration */)
7 | .AddZendesk(options =>
8 | {
9 | options.ClientId = "my-client-id";
10 | options.ClientSecret = "my-client-secret";
11 | options.Domain = "https://glowingwaffle.zendesk.com";
12 | });
13 | ```
14 |
15 | ## Required Additional Settings
16 |
17 | | Property Name | Property Type | Description | Default Value |
18 | |:--|:--|:--|:--|
19 | | `Domain` | `string?` | The Zendesk domain (_Account URL_) to use for authentication. | `null` |
20 |
21 | ## Optional Settings
22 |
23 | _None._
24 |
--------------------------------------------------------------------------------
/src/AspNet.Security.OAuth.Line/AspNet.Security.OAuth.Line.csproj:
--------------------------------------------------------------------------------
1 |