-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from eramosr16/main
adding endpoint to get token from identity provider
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
src/Keycloak.Net/Models/IdentityProviders/IdentityProviderToken.cs
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,25 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Keycloak.Net.Models.IdentityProviders | ||
{ | ||
public class IdentityProviderToken | ||
{ | ||
[JsonProperty("access_token")] | ||
public string AccessToken { get; set; } | ||
|
||
[JsonProperty("token_type")] | ||
public string RequestingPartyToken { get; set; } | ||
|
||
[JsonProperty("expires_in")] | ||
public int ExpiresIn { get; set; } | ||
|
||
[JsonProperty("refresh_token")] | ||
public string RefreshToken { get; set; } | ||
|
||
[JsonProperty("scope")] | ||
public string Scope { get; set; } | ||
|
||
[JsonProperty("created_at")] | ||
public long CreatedAt { get; set; } | ||
} | ||
} |
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