-
Notifications
You must be signed in to change notification settings - Fork 241
Add checks to protect the internal claims used by MIW. Ref: issue #2968 #3131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
f8f5512
6be209b
06befbe
60e16d2
cb2b715
be83a8a
a54dcaf
9aabaed
fb3e767
56b255c
31040e2
ea8ef24
3fcd58d
c2b2f21
22705ef
642e791
a81d6c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
| using System.Security.Claims; | ||
|
|
||
| namespace Microsoft.Identity.Web.OWIN | ||
| { | ||
| /// <summary> | ||
| /// The exception that is thrown when an internal ID Token claim used by Microsoft.Identity.Web internally is detected in the user's ID Token. | ||
| /// </summary> | ||
| public class InternalClaimDetectedException : Exception | ||
|
Check warning on line 12 in src/Microsoft.Identity.Web.OWIN/InternalClaimDetectedException.cs
|
||
DOMZE marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| /// <summary> | ||
| /// Gets or sets the invalid claim. | ||
| /// </summary> | ||
| public Claim Claim { get; set; } | ||
|
Check warning on line 17 in src/Microsoft.Identity.Web.OWIN/InternalClaimDetectedException.cs
|
||
DOMZE marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| public InternalClaimDetectedException() | ||
|
Check warning on line 19 in src/Microsoft.Identity.Web.OWIN/InternalClaimDetectedException.cs
|
||
DOMZE marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| } | ||
|
|
||
| public InternalClaimDetectedException(string message) : base(message) | ||
|
Check warning on line 23 in src/Microsoft.Identity.Web.OWIN/InternalClaimDetectedException.cs
|
||
| { | ||
| } | ||
|
|
||
| public InternalClaimDetectedException(string message, Exception innerException) : base(message, innerException) | ||
|
Check warning on line 27 in src/Microsoft.Identity.Web.OWIN/InternalClaimDetectedException.cs
|
||
| { | ||
| } | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
| using System.Security.Claims; | ||
|
|
||
| namespace Microsoft.Identity.Web | ||
| { | ||
| /// <summary> | ||
| /// The exception that is thrown when an internal ID Token claim used by Microsoft.Identity.Web internally is detected in the user's ID Token. | ||
| /// </summary> | ||
| public class InternalClaimDetectedException : Exception | ||
|
Check warning on line 12 in src/Microsoft.Identity.Web/InternalClaimDetectedException.cs
|
||
DOMZE marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| /// <summary> | ||
| /// Gets or sets the invalid claim. | ||
| /// </summary> | ||
| public Claim Claim { get; set; } | ||
|
Check warning on line 17 in src/Microsoft.Identity.Web/InternalClaimDetectedException.cs
|
||
|
|
||
| public InternalClaimDetectedException() | ||
|
Check warning on line 19 in src/Microsoft.Identity.Web/InternalClaimDetectedException.cs
|
||
| { | ||
| } | ||
|
|
||
| public InternalClaimDetectedException(string message) : base(message) | ||
|
Check warning on line 23 in src/Microsoft.Identity.Web/InternalClaimDetectedException.cs
|
||
| { | ||
| } | ||
|
|
||
| public InternalClaimDetectedException(string message, Exception innerException) : base(message, innerException) | ||
|
Check warning on line 27 in src/Microsoft.Identity.Web/InternalClaimDetectedException.cs
|
||
| { | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.