-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erik Dahl
committed
Jan 27, 2018
1 parent
940644d
commit b373299
Showing
17 changed files
with
1,625 additions
and
1,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,3 +120,6 @@ Sustainsys.Saml2.StubIdp/App_Data/*.json | |
*.ndproj | ||
NDependOut | ||
*.coveragexml | ||
|
||
#ReadTheDocs output | ||
docs/_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"restructuredtext.confPath": "c:\\Users\\edahl\\Saml2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"restructuredtext.confPath": "c:\\Users\\edahl\\Saml2\\docs" | ||
} |
54 changes: 27 additions & 27 deletions
54
doc/ClaimsAuthenticationManager.md → docs/ClaimsAuthenticationManager.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
ClaimsAuthenticationManager | ||
========================== | ||
|
||
When using federated authentication the identity provider solely decides what | ||
claims to use to populate the incoming identity. If using multiple identity | ||
providers there is very high probability that they will present the same | ||
information in somewhat different ways. That's where the | ||
`ClaimsAuthenticationManager` fits in. It works as a translation filter | ||
that can modify or replace the incoming identity as soon as it has been | ||
constructed from the incoming authentication response. | ||
|
||
Implement a `ClaimsAuthenticationManager` by creating a class derived from the | ||
[`System.Security.Claims.ClaimsAuthenticationManager`](http://msdn.microsoft.com/en-us/library/system.security.claims.claimsauthenticationmanager.aspx) | ||
class. | ||
|
||
Then register it with a | ||
[`<claimsAuthenticationManager>`](Configuration.md#claimsauthenticationmanager-element) | ||
element in the configuration if the configuration is loaded from the config file. | ||
If the configuration is done in code (typically for the OWIN middleware) the | ||
`ClaimsAuthenticationManager` should be registered in | ||
`Options.SPOptions.SystemIdentityModelIdentityConfiguration.ClaimsAuthenticationManager`. | ||
|
||
## Single Logout | ||
If you are using Single Logout, you need to make sure that the claims containing | ||
the Saml2 logout information are present in the returned identity. The | ||
types of the claims are available in `Saml2ClaimTypes.SessionIndex` and | ||
`Saml2ClaimTypes.LogoutNameIdentifier`. | ||
ClaimsAuthenticationManager | ||
========================== | ||
|
||
When using federated authentication the identity provider solely decides what | ||
claims to use to populate the incoming identity. If using multiple identity | ||
providers there is very high probability that they will present the same | ||
information in somewhat different ways. That's where the | ||
`ClaimsAuthenticationManager` fits in. It works as a translation filter | ||
that can modify or replace the incoming identity as soon as it has been | ||
constructed from the incoming authentication response. | ||
|
||
Implement a `ClaimsAuthenticationManager` by creating a class derived from the | ||
[`System.Security.Claims.ClaimsAuthenticationManager`](http://msdn.microsoft.com/en-us/library/system.security.claims.claimsauthenticationmanager.aspx) | ||
class. | ||
|
||
Then register it with a | ||
[`<claimsAuthenticationManager>`](Configuration.md#claimsauthenticationmanager-element) | ||
element in the configuration if the configuration is loaded from the config file. | ||
If the configuration is done in code (typically for the OWIN middleware) the | ||
`ClaimsAuthenticationManager` should be registered in | ||
`Options.SPOptions.SystemIdentityModelIdentityConfiguration.ClaimsAuthenticationManager`. | ||
|
||
## Single Logout | ||
If you are using Single Logout, you need to make sure that the claims containing | ||
the Saml2 logout information are present in the returned identity. The | ||
types of the claims are available in `Saml2ClaimTypes.SessionIndex` and | ||
`Saml2ClaimTypes.LogoutNameIdentifier`. |
Oops, something went wrong.