Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add RedditClaimTypes
  • Loading branch information
khellang committed Feb 15, 2018
commit f5d5e17c1604299060badbb83774ddddb75de857
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public RedditAuthenticationOptions()

ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "id");
ClaimActions.MapJsonKey(ClaimTypes.Name, "name");
ClaimActions.MapJsonKey("urn:reddit:over18", "over_18");
ClaimActions.MapJsonKey(RedditClaimTypes.Over18, "over_18");
}

/// <summary>
Expand Down
16 changes: 16 additions & 0 deletions src/AspNet.Security.OAuth.Reddit/RedditClaimTypes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
* for more information concerning the license and the contributors participating to this project.
*/

namespace AspNet.Security.OAuth.Reddit
{
/// <summary>
/// Contains claim types specific to the <see cref="RedditAuthenticationHandler"/>.
/// </summary>
public static class RedditClaimTypes
{
public const string Over18 = "urn:reddit:over18";
}
}