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
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ type Saturn.Application.ApplicationBuilder with
128
128
CookiesAlreadyAdded =true
129
129
}
130
130
131
-
///Enalbes Azure Active Directory authentication.
131
+
///Enalbes default Azure AD OAuth authentication.
132
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
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
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).
@@ -164,3 +164,24 @@ type Saturn.Application.ApplicationBuilder with
164
164
AppConfigs = middleware::state.AppConfigs
165
165
CookiesAlreadyAdded =true
166
166
}
167
+
168
+
///Enables AzureAD OAuth authentication with custom configuration
0 commit comments