Hi Harsha,

Thanks for prompt reply. Will follow that. Hope we need to specify that
client_credentials grant need for enabling SAML grant in the documentation.

Regards,
Dilshani

On Thu, Nov 9, 2017 at 12:08 AM, Harsha Kumara <hars...@wso2.com> wrote:

> Hi Dilshani,
>
> If you need to generate a token using SAML2 grant you may follow [1]. In
> store, you need to select client_credentials grant as we used it in the
> store to generate the token for an application.
>
> [1] https://docs.wso2.com/display/AM1100/Exchanging+
> SAML2+Bearer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type
>
> On Thu, Nov 9, 2017 at 12:01 AM, Dilshani Subasinghe <dilsh...@wso2.com>
> wrote:
>
>> Hi APIM/IS Team,
>>
>> I'm working with IS as Key manager setup. (APIM 2.1.0 and
>> wso2is-km-5.3.0). In APIM, while generating keys for Applications with
>> "SAML" as grant type, it may give an error as follows [1]:
>>
>> [2017-11-08 23:51:34,102] ERROR - APIUtil Error occurred while executing
>> SubscriberKeyMgtClient.
>> java.lang.RuntimeException: Error occurred while calling token endpoint:
>> HTTP error code : 400
>> at org.wso2.carbon.apimgt.impl.AMDefaultKeyManagerImpl.getNewAp
>> plicationAccessToken(AMDefaultKeyManagerImpl.java:367)
>> at org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegi
>> strationWorkflowExecutor.dogenerateKeysForApplication(Abstra
>> ctApplicationRegistrationWorkflowExecutor.java:151)
>> at org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegi
>> strationWorkflowExecutor.generateKeysForApplication(Abstract
>> ApplicationRegistrationWorkflowExecutor.java:118)
>> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration
>> SimpleWorkflowExecutor.complete(ApplicationRegistrationSimpl
>> eWorkflowExecutor.java:78)
>> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration
>> SimpleWorkflowExecutor.execute(ApplicationRegistrationSimple
>> WorkflowExecutor.java:54)
>> at org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalF
>> orApplicationRegistration(APIConsumerImpl.java:2789)
>> at org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestAppr
>> ovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
>> at org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunc
>> tion_getApplicationKey(APIStoreHostObject.java:385)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorIm
>>
>> Any idea on the issue?
>>
>> [1] error.png
>>
>> Thanks,
>> Dilshani
>>
>> --
>>
>> Dilshani Subasinghe
>> Software Engineer - QA *|* WSO2
>> lean *|* enterprise *|* middleware
>>
>> Mobile : +94773375185 <+94%2077%20337%205185>
>> Blog    : dilshani.me
>>
>> <https://wso2.com/signature>
>>
>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618 <+94%2077%20550%205618>
> Blog:harshcreationz.blogspot.com
>



-- 

Dilshani Subasinghe
Software Engineer - QA *|* WSO2
lean *|* enterprise *|* middleware

Mobile : +94773375185
Blog    : dilshani.me

<https://wso2.com/signature>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to