Skip to content
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

Add support for prompt and enroll_amr_values. #225

Merged
merged 4 commits into from
Nov 14, 2022
Merged
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
Fix test
  • Loading branch information
laura-rodriguez committed Nov 10, 2022
commit 6052970f8d62cf07c225cd3f4ea96375a4c8e590
3 changes: 2 additions & 1 deletion Okta.AspNetCore.Mvc.IntegrationTest/OktaMiddlewareShould.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
using Xunit;

namespace Okta.AspNetCore.Mvc.IntegrationTest
Expand Down Expand Up @@ -76,7 +77,7 @@ public async Task IncludePromptAndAmrEnrollValuesInAuthorizeUrlAsync()
var response = await client.GetAsync(loginWithLoginHintEndpoint);
Assert.True(response.StatusCode == System.Net.HttpStatusCode.Found);
Assert.Contains("prompt=enroll_authenticator", response.Headers.Location.AbsoluteUri);
Assert.Contains("enroll_amr_values=sms okta_verify", response.Headers.Location.AbsoluteUri);
Assert.Contains(HttpUtility.UrlPathEncode("enroll_amr_values=sms okta_verify"), response.Headers.Location.AbsoluteUri);
}
}

Expand Down