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 DeviantArtClaimTypes
  • Loading branch information
khellang committed Feb 15, 2018
commit 91a424a30ee9648582511d348f4501b28bce700c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public DeviantArtAuthenticationOptions()

ClaimActions.MapJsonKey(ClaimTypes.NameIdentifier, "userid");
ClaimActions.MapJsonKey(ClaimTypes.Name, "username");
ClaimActions.MapJsonKey("urn:DeviantArt:name", "username");
ClaimActions.MapJsonKey(DeviantArtClaimTypes.Username, "username");
}
}
}
16 changes: 16 additions & 0 deletions src/AspNet.Security.OAuth.DeviantArt/DeviantArtClaimTypes.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.DeviantArt
{
/// <summary>
/// Contains claim types specific to the <see cref="DeviantArtAuthenticationHandler"/>.
/// </summary>
public static class DeviantArtClaimTypes
{
public const string Username = "urn:DeviantArt:name";
}
}