-
Notifications
You must be signed in to change notification settings - Fork 23
OKTA-439188 [.NET IDX SDK] - Implement Scenario 10.1 (TOTP) #123
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
Open
andriizhegurov-okta
wants to merge
8
commits into
master
Choose a base branch
from
az-OKTA-439188-Implement-Scenario-10.1-(TOTP)
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1eb4804
OKTA-439188 [.NET IDX SDK] - Implement Scenario 10.1 (TOTP)
andriizhegurov-okta 19b2c37
Reverting unnecessary changes
andriizhegurov-okta fa6434e
Reverting unnecessary changes
andriizhegurov-okta 3655227
Formatting
andriizhegurov-okta 5698fba
Formatting
andriizhegurov-okta 3167b61
Additional commit
andriizhegurov-okta 62dbc69
Additional commit
andriizhegurov-okta 56666dd
Additional commit
andriizhegurov-okta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,6 +1,12 @@ | ||
| # Changelog | ||
|
|
||
|
|
||
| ## 1.0.2 | ||
|
|
||
| ### Features | ||
|
|
||
| * Add support for Google Authenticator TOTP. | ||
|
|
||
| ## 1.0.1 | ||
|
|
||
| ### Updates | ||
|
|
||
62 changes: 31 additions & 31 deletions
62
samples/samples-aspnet/embedded-auth-with-sdk/embedded-auth-with-sdk.sln
This file contains hidden or 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,31 +1,31 @@ | ||
| | ||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| # Visual Studio Version 16 | ||
| VisualStudioVersion = 16.0.30711.63 | ||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "embedded-auth-with-sdk", "embedded-auth-with-sdk\embedded-auth-with-sdk.csproj", "{88504747-10B6-425F-B27D-66426F7ED199}" | ||
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "embedded-auth-with-sdk.E2ETests", "Okta.Idx.Sdk.E2ETests\embedded-auth-with-sdk.E2ETests.csproj", "{1E45AB5D-2869-4116-AAD6-6738E61503A8}" | ||
| EndProject | ||
| Global | ||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
| Debug|Any CPU = Debug|Any CPU | ||
| Release|Any CPU = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(SolutionProperties) = preSolution | ||
| HideSolutionNode = FALSE | ||
| EndGlobalSection | ||
| GlobalSection(ExtensibilityGlobals) = postSolution | ||
| SolutionGuid = {ECB24106-EEF7-4E36-9A01-A20216D9B01D} | ||
| EndGlobalSection | ||
| EndGlobal | ||
| | ||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| # Visual Studio Version 16 | ||
| VisualStudioVersion = 16.0.30711.63 | ||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "embedded-auth-with-sdk", "embedded-auth-with-sdk\embedded-auth-with-sdk.csproj", "{88504747-10B6-425F-B27D-66426F7ED199}" | ||
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "embedded-auth-with-sdk.E2ETests", "Okta.Idx.Sdk.E2ETests\embedded-auth-with-sdk.E2ETests.csproj", "{1E45AB5D-2869-4116-AAD6-6738E61503A8}" | ||
| EndProject | ||
| Global | ||
| GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
| Debug|Any CPU = Debug|Any CPU | ||
| Release|Any CPU = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {88504747-10B6-425F-B27D-66426F7ED199}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| {1E45AB5D-2869-4116-AAD6-6738E61503A8}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| EndGlobalSection | ||
| GlobalSection(SolutionProperties) = preSolution | ||
| HideSolutionNode = FALSE | ||
| EndGlobalSection | ||
| GlobalSection(ExtensibilityGlobals) = postSolution | ||
| SolutionGuid = {ECB24106-EEF7-4E36-9A01-A20216D9B01D} | ||
| EndGlobalSection | ||
| EndGlobal |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,19 @@ | ||
| // <copyright file="ContextualData.cs" company="Okta, Inc"> | ||
| // Copyright (c) 2020 - present Okta, Inc. All rights reserved. | ||
| // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
| // </copyright> | ||
|
|
||
| namespace Okta.Idx.Sdk | ||
| { | ||
| /// <summary> | ||
| /// ContextualData type. | ||
| /// </summary> | ||
| public class ContextualData : Resource, IContextualData | ||
| { | ||
| /// <inheritdoc/> | ||
| public IQrCode QrCode => GetResourceProperty<QrCode>("qrcode"); | ||
|
|
||
| /// <inheritdoc/> | ||
| public string SharedSecret => GetStringProperty("sharedSecret"); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| // <copyright file="IContextualData.cs" company="Okta, Inc"> | ||
| // Copyright (c) 2020 - present Okta, Inc. All rights reserved. | ||
| // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
| // </copyright> | ||
|
|
||
| using Okta.Sdk.Abstractions; | ||
|
|
||
| namespace Okta.Idx.Sdk | ||
| { | ||
| /// <summary> | ||
| /// An interface to represent ContextualData type. | ||
| /// </summary> | ||
| public interface IContextualData : IResource | ||
| { | ||
| /// <summary> | ||
| /// Gets the QR Code. | ||
| /// </summary> | ||
| IQrCode QrCode { get; } | ||
|
|
||
| /// <summary> | ||
| /// Gets the Shared Secret. | ||
| /// </summary> | ||
| string SharedSecret { get; } | ||
| } | ||
| } |
This file contains hidden or 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,30 @@ | ||
| // <copyright file="IQrCode.cs" company="Okta, Inc"> | ||
| // Copyright (c) 2020 - present Okta, Inc. All rights reserved. | ||
| // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
| // </copyright> | ||
|
|
||
| using Okta.Sdk.Abstractions; | ||
|
|
||
| namespace Okta.Idx.Sdk | ||
| { | ||
| /// <summary> | ||
| /// An Interface to represent QR Code type | ||
| /// </summary> | ||
| public interface IQrCode : IResource | ||
| { | ||
| /// <summary> | ||
| /// Gets the Method | ||
| /// </summary> | ||
| string Method { get; } | ||
|
|
||
| /// <summary> | ||
| /// Gets the Href. The value contains base64-encoded png image with the QR code. | ||
| /// </summary> | ||
| string Href { get; } | ||
|
andriizhegurov-okta marked this conversation as resolved.
|
||
|
|
||
| /// <summary> | ||
| /// Gets the Type | ||
| /// </summary> | ||
| string Type { get; } | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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,22 @@ | ||
| // <copyright file="QrCode.cs" company="Okta, Inc"> | ||
| // Copyright (c) 2020 - present Okta, Inc. All rights reserved. | ||
| // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. | ||
| // </copyright> | ||
|
|
||
| namespace Okta.Idx.Sdk | ||
| { | ||
| /// <summary> | ||
| /// QR Code type | ||
| /// </summary> | ||
| public class QrCode : Resource, IQrCode | ||
| { | ||
| /// <inheritdoc/> | ||
| public string Method => GetStringProperty("method"); | ||
|
|
||
| /// <inheritdoc/> | ||
| public string Href => GetStringProperty("href"); | ||
|
|
||
| /// <inheritdoc/> | ||
| public string Type => GetStringProperty("type"); | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.