forked from Sustainsys/Saml2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSaml2Options.cs
63 lines (55 loc) · 1.86 KB
/
Saml2Options.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using Sustainsys.Saml2.Configuration;
using Sustainsys.Saml2.WebSso;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using System;
using Microsoft.AspNetCore.Authentication.Cookies;
namespace Sustainsys.Saml2.AspNetCore2
{
/// <summary>
/// Options for Saml2 Authentication
/// </summary>
public class Saml2Options : AuthenticationSchemeOptions, IOptions
{
/// <summary>
/// Ctor
/// </summary>
public Saml2Options()
{
SPOptions = new SPOptions()
{
ModulePath = "/Saml2"
};
}
/// <summary>
/// Authentication scheme to sign in with to establish a session after
/// the SAML2 authentication is done.
/// </summary>
public string SignInScheme { get; set; }
/// <summary>
/// Authentication scheme to sign out with when a logout requerst is
/// received from the idp.
/// </summary>
public string SignOutScheme { get; set; }
/// <summary>
/// Options for the service provider's behaviour; i.e. everything except
/// the idp list and the notifications.
/// </summary>
public SPOptions SPOptions { get; set; }
/// <summary>
/// Cookie manager for reading/writing cookies
/// </summary>
public ICookieManager CookieManager { get; set; }
/// <summary>
/// Information about known identity providers.
/// </summary>
public IdentityProviderDictionary IdentityProviders { get; }
= new IdentityProviderDictionary();
/// <summary>
/// Set of callbacks that can be used as extension points for various
/// events.
/// </summary>
public Saml2Notifications Notifications { get; }
= new Saml2Notifications();
}
}