You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Saturn.Extensions.Authorization/OAuth.fs
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ open Newtonsoft.Json.Linq
18
18
letprivateaddCookie state (c :AuthenticationBuilder)=ifnot state.CookiesAlreadyAdded then c.AddCookie()|> ignore
19
19
20
20
typeSaturn.Application.ApplicationBuilderwith
21
-
///Enables default Google OAuth authentication.
22
-
///`jsonToClaimMap` should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim.
23
-
///For example: `["id", ClaimTypes.NameIdentifier; "displayName", ClaimTypes.Name]` where `id` and `displayName` are names of fields in the Google JSON response (https://developers.google.com/+/web/api/rest/latest/people#resource).
21
+
///Enables default Google OAuth authentication.
22
+
///`jsonToClaimMap` should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim.
23
+
///For example: `["id", ClaimTypes.NameIdentifier; "displayName", ClaimTypes.Name]` where `id` and `displayName` are names of fields in the Google JSON response (https://developers.google.com/+/web/api/rest/latest/people#resource).
@@ -72,9 +72,9 @@ type Saturn.Application.ApplicationBuilder with
72
72
CookiesAlreadyAdded =true
73
73
}
74
74
75
-
///Enables default GitHub OAuth authentication.
76
-
///`jsonToClaimMap` should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim.
77
-
///For example: `["login", "githubUsername"; "name", "fullName"]` where `login` and `name` are names of fields in GitHub JSON response (https://developer.github.com/v3/users/#get-the-authenticated-user).
75
+
///Enables default GitHub OAuth authentication.
76
+
///`jsonToClaimMap` should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim.
77
+
///For example: `["login", "githubUsername"; "name", "fullName"]` where `login` and `name` are names of fields in GitHub JSON response (https://developer.github.com/v3/users/#get-the-authenticated-user).
@@ -128,10 +128,10 @@ type Saturn.Application.ApplicationBuilder with
128
128
CookiesAlreadyAdded =true
129
129
}
130
130
131
-
///Enalbes default Azure AD OAuth authentication.
132
-
///`scopes` must be at least on of the scopes defined in https://docs.microsoft.com/en-us/graph/permissions-reference, for instance "User.Read".
133
-
///`jsonToClaimMap` should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim.
134
-
///For example: `["name", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" ]` where `name` is the names of a field in Azure AD's JSON response (see https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokens or inspect tokens with https://jwt.ms).
131
+
///Enalbes default Azure AD OAuth authentication.
132
+
///`scopes` must be at least on of the scopes defined in https://docs.microsoft.com/en-us/graph/permissions-reference, for instance "User.Read".
133
+
///`jsonToClaimMap` should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim.
134
+
///For example: `["name", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" ]` where `name` is the names of a field in Azure AD's JSON response (see https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokens or inspect tokens with https://jwt.ms).
Copy file name to clipboardExpand all lines: src/Saturn.Extensions.HttpSys/Saturn.HttpSys.fs
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ open Microsoft.AspNetCore.Server.HttpSys
7
7
8
8
typeSaturn.Application.ApplicationBuilderwith
9
9
10
+
/// HTTP.sys is a web server for ASP.NET Core that only runs on Windows. HTTP.sys is an alternative to Kestrel server and offers some features that Kestrel doesn't provide.
/// This operation switches hosting to the HTTP.sys server.
10
13
[<CustomOperation("use_httpsys")>]
11
14
member__.UseHttpSys(state)=
12
15
lethost(builder:IWebHostBuilder)=
@@ -15,6 +18,9 @@ type Saturn.Application.ApplicationBuilder with
15
18
HostConfigs = host::state.HostConfigs
16
19
}
17
20
21
+
/// HTTP.sys is a web server for ASP.NET Core that only runs on Windows. HTTP.sys is an alternative to Kestrel server and offers some features that Kestrel doesn't provide.
/// This operation switches hosting to the HTTP.sys server and takes additional config.
18
24
[<CustomOperation("use_httpsys_with_config")>]
19
25
member__.UseHttpSysWithConfig(state,config)=
20
26
lethost(builder:IWebHostBuilder)=
@@ -23,6 +29,9 @@ type Saturn.Application.ApplicationBuilder with
23
29
HostConfigs = host::state.HostConfigs
24
30
}
25
31
32
+
/// HTTP.sys is a web server for ASP.NET Core that only runs on Windows. HTTP.sys is an alternative to Kestrel server and offers some features that Kestrel doesn't provide.
0 commit comments