Hi,

 

I am using WSO2 API manager 2.1.0 and I deployed my custom authenticator as
OSGI bundler for authenticating using built in identity server. And it's
activated successfully. But when I send request to /authorize during
authorization grant type flow. I am getting Invalid request.

 

Here are my configurations.

wso2am-2.1.0/repository/conf/identity/application-authentication.xml

    <AuthenticatorNameMappings>

        <AuthenticatorNameMapping name="BasicAuthenticator" alias="basic" />

        <AuthenticatorNameMapping name="SSBasicAuthenticator"
alias="ssbasic" />   // ---> my custom class name

        <AuthenticatorNameMapping name="OAuthRequestPathAuthenticator"
alias="oauth-bearer" />

        <AuthenticatorNameMapping name="BasicAuthRequestPathAuthenticator"
alias="basic-auth" />

        <AuthenticatorNameMapping name="IWAAuthenticator" alias="iwa" />

        <AuthenticatorNameMapping name="SAMLSSOAuthenticator"
alias="samlsso" />

        <AuthenticatorNameMapping name="OpenIDConnectAuthenticator"
alias="openidconnect" />

        <AuthenticatorNameMapping name="OpenIDAuthenticator" alias="openid"
/>

        <AuthenticatorNameMapping name="PassiveSTSAuthenticator"
alias="passive-sts" />

    </AuthenticatorNameMappings>

 

        <AuthenticatorConfigs>

                <AuthenticatorConfig name="SSBasicAuthenticator"
enabled="true">

                        <!--Parameter
name="UserNameAttributeClaimUri">http://wso2.org/claims/emailaddress</Parame
ter-->

                        <!--Parameter
name="showAuthFailureReason">true</Parameter-->

                </AuthenticatorConfig>

               <AuthenticatorConfig name="BasicAuthenticator"
enabled="false">

                        <!--Parameter
name="UserNameAttributeClaimUri">http://wso2.org/claims/emailaddress</Parame
ter-->

                        <!--Parameter
name="showAuthFailureReason">true</Parameter-->

                </AuthenticatorConfig>

                <AuthenticatorConfig name="OAuthRequestPathAuthenticator"
enabled="true" />

                <AuthenticatorConfig
name="BasicAuthRequestPathAuthenticator" enabled="true" />

                <AuthenticatorConfig name="SAMLSSOAuthenticator"
enabled="true">

 

 

        <Sequences>

                <!-- Default Sequence. This is mandatory -->

                <Sequence appId="default">

                        <Step order="1">

                                <!--Authenticator
name="BasicAuthenticator"/-->

                                <Authenticator name="SSBasicAuthenticator"/>

                        </Step>

                </Sequence>

        </Sequences>

 

wso2am-2.1.0/repository/conf/identity/service-providers/default.xml

                                <LocalAuthenticatorConfigs>

                                        <LocalAuthenticatorConfig>

 
<Name>SSBasicAuthenticator</Name>

 
<DisplayName>ssbasicauth</DisplayName>

                                                <IsEnabled>true</IsEnabled>

                                        </LocalAuthenticatorConfig>

                                </LocalAuthenticatorConfigs>

 

When I browse to https://localhost:8243/authorize?response_type=code
<https://localhost:8243/authorize?response_type=code&client_id=iHvjBTLy70slP
Ct0JZIGVSrmLW8a&scope=PRODUCTION&redirect_uri=http://mail.google.com>
&client_id=iHvjBTLy70slPCt0JZIGVSrmLW8a&scope=PRODUCTION&redirect_uri=http:/
/mail.google.com

I get below errors please HELP.

[2017-09-07 15:33:54,053] ERROR - DefaultStepHandler Authenticator is null

[2017-09-07 15:33:54,062] ERROR - OAuth2AuthzEndpoint Cannot find
AuthenticationResult from the cache

 



 

Please reply if u need more information.

 

Thank You,

Shiva Kumar KR

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to