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

Update URI for the authenticationmethod claim #4165

Merged
merged 1 commit into from Apr 22, 2020

Conversation

maweeras-msft
Copy link
Contributor

The correct URI for the schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod claim type in the TryEndAuthentication should use http; not https. Else, it generates errors like so.

Event Xml:



153
0
2
0
0
0x8000000004000000

1909


ad fs tracing/debug
maweer454VM.maweeras1.lab




Exception: The authentication provider did not return an authentication method claim.
StackTrace: at Microsoft.IdentityServer.Web.Authentication.External.ExternalAuthenticationHandler.ValidateAdapterClaims(IAuthenticationContext authContext, ICollection1 claims, Int32 responseLcid) at Microsoft.IdentityServer.Web.Authentication.External.ExternalAuthenticationHandler.ProcessAdapterClaims(ICollection1 claims, AuthenticationContext authContext, ProtocolContext context, IAccountStoreUserData userData)
at Microsoft.IdentityServer.Web.Authentication.External.ExternalAuthenticationHandler.Process(ProtocolContext context)
at Microsoft.IdentityServer.Web.Authentication.AuthenticationOptionsHandler.Process(ProtocolContext context)
at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)



The correct URI for the schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod claim type in the TryEndAuthentication should use http; not https. Else, it generates errors like so.


Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="AD FS Tracing" Guid="{0457a490-4d4d-4a5b-b639-35382f1b6709}" />
    <EventID>153</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000004000000</Keywords>
    <TimeCreated SystemTime="2020-04-09T11:48:40.595457400Z" />
    <EventRecordID>1909</EventRecordID>
    <Correlation ActivityID="{e77f758c-6fdf-4a95-9201-0080000000ff}" />
    <Execution ProcessID="9812" ThreadID="9284" ProcessorID="3" KernelTime="308" UserTime="2061" />
    <Channel>ad fs tracing/debug</Channel>
    <Computer>maweer454VM.maweeras1.lab</Computer>
    <Security UserID="S-1-5-21-3539614737-2601322808-1240387331-1113" />
  </System>
  <UserData>
    <Event xmlns="http://schemas.microsoft.com/ActiveDirectoryFederationServices/2.0/Events">
      <EventData>Exception: The authentication provider did not return an authentication method claim.
StackTrace:    at Microsoft.IdentityServer.Web.Authentication.External.ExternalAuthenticationHandler.ValidateAdapterClaims(IAuthenticationContext authContext, ICollection`1 claims, Int32 responseLcid)
   at Microsoft.IdentityServer.Web.Authentication.External.ExternalAuthenticationHandler.ProcessAdapterClaims(ICollection`1 claims, AuthenticationContext authContext, ProtocolContext context, IAccountStoreUserData userData)
   at Microsoft.IdentityServer.Web.Authentication.External.ExternalAuthenticationHandler.Process(ProtocolContext context)
   at Microsoft.IdentityServer.Web.Authentication.AuthenticationOptionsHandler.Process(ProtocolContext context)
   at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)
</EventData>
    </Event>
  </UserData>
</Event>
@eross-msft
Copy link
Contributor

eross-msft commented Apr 10, 2020

@billmath Please confirm for merging.

@ghost
Copy link

ghost commented Apr 11, 2020

@maweeras-msft : I noticed that the source page formatting leaves a lot to be desired in terms of proper view of many sections in the resulting page. I would like to have a go at improving it, but I also want to wait for this PR to be merged first. Would you be so kind as to ping me (@illfated ) when the merge is complete? (I will do my best to follow the development here, so no big deal if you are too busy.)

@billmath
Copy link
Contributor

#sign-off

@eross-msft eross-msft merged commit 782902b into MicrosoftDocs:master Apr 22, 2020
@maweeras-msft maweeras-msft deleted the patch-10 branch July 7, 2020 16:07
learn-build-service-prod bot pushed a commit that referenced this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants