I'm trying to use cas version 5.0.0 as an openid connect server (on localhost and http for the moment).
Code generation is ok but, I get the following error when I try to validate the obtained code thanks /cas/oidc/access_token endpoint :
2017-01-30 16:46:38,726 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <=== SECURITY ===>
2017-01-30 16:46:38,726 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <matchers: null>
2017-01-30 16:46:38,726 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <clients: clientBasicAuth,clientForm,userForm>
2017-01-30 16:46:38,726 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <currentClients: [#DirectBasicAuthClient# | name: clientBasicAuth | credentialsExtractor: null | authenticator: org.apereo.cas.support.oauth.authenticator.OAuthClientAuthenticator@2d309cd1 | profileCreator: org.pac4j.core.profile.creator.AuthenticatorProfileCreator@1be1a488 |, #DirectFormClient# | name: clientForm | usernameParameter: client_id | passwordParameter: client_secret | extractor: null | authenticator: org.apereo.cas.support.oauth.authenticator.OAuthClientAuthenticator@2d309cd1 | profileCreator: org.pac4j.core.profile.creator.AuthenticatorProfileCreator@1be1a488 |, #DirectFormClient# | name: userForm | usernameParameter: username | passwordParameter: password | extractor: null | authenticator: org.apereo.cas.support.oauth.authenticator.OAuthUserAuthenticator@780f6639 | profileCreator: org.pac4j.core.profile.creator.AuthenticatorProfileCreator@1be1a488 |]>
2017-01-30 16:46:38,728 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <loadProfilesFromSession: false>
2017-01-30 16:46:38,728 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <profiles: []>
2017-01-30 16:46:38,728 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <Performing authentication for direct client: #DirectBasicAuthClient# | name: clientBasicAuth | credentialsExtractor: null | authenticator: org.apereo.cas.support.oauth.authenticator.OAuthClientAuthenticator@2d309cd1 | profileCreator: org.pac4j.core.profile.creator.AuthenticatorProfileCreator@1be1a488 |>
2017-01-30 16:46:38,732 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <credentials: null>
2017-01-30 16:46:38,732 DEBUG [org.pac4j.http.client.direct.DirectBasicAuthClient] - <credentials : null>
2017-01-30 16:46:38,732 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <profile: null>
2017-01-30 16:46:38,732 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <Performing authentication for direct client: #DirectFormClient# | name: clientForm | usernameParameter: client_id | passwordParameter: client_secret | extractor: null | authenticator: org.apereo.cas.support.oauth.authenticator.OAuthClientAuthenticator@2d309cd1 | profileCreator: org.pac4j.core.profile.creator.AuthenticatorProfileCreator@1be1a488 |>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <credentials: null>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.http.client.direct.DirectFormClient] - <credentials : null>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <profile: null>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <Performing authentication for direct client: #DirectFormClient# | name: userForm | usernameParameter: username | passwordParameter: password | extractor: org.pac4j.core.credentials.extractor.FormExtractor@62f3a13a | authenticator: org.apereo.cas.support.oauth.authenticator.OAuthUserAuthenticator@780f6639 | profileCreator: org.pac4j.core.profile.creator.AuthenticatorProfileCreator@1be1a488 |>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <credentials: null>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.http.client.direct.DirectFormClient] - <credentials : null>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <profile: null>
2017-01-30 16:46:38,734 DEBUG [org.pac4j.core.engine.DefaultSecurityLogic] - <unauthorized>