Content and Experience

Get Involved. Join the Conversation.

Topic

    Mohan
    perform authentication and obtain tokenAnswered
    Topic posted October 10, 2018 by Mohan Blue Ribbon: 750+ Points, last edited November 13, 2018 by Arijit ChakrabortyBronze Trophy: 5,000+ Points, tagged APIs, Components, Connectors, Content Management, Documents, Tip, WCM 
    152 Views, 2 Comments
    Title:
    perform authentication and obtain token
    Summary:
    perform authentication and obtain token
    Content:

    Hi

    If a site is protected (http://hostname/.../authsite/mysite) in CEC we get login page by default and on login we are able to access published site. But from custom component if we need to make ajax http call how do we obtain token?

    In general, are there any APIs for making authentication call to IDCS and to get OAuth token? Is there any JS wrapper API that can be leveraged by component admins

    Thanks

    Best Comment

    Igor Polyakov

    Sites page or any component on the page has access to HTML request object which you can use to obtain login token created by IDCS web gate.

    IDCS does have REST API - https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/index.html

    Comment

     

    • Igor Polyakov

      Sites page or any component on the page has access to HTML request object which you can use to obtain login token created by IDCS web gate.

      IDCS does have REST API - https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/index.html

      • Mohan

        Are there any samples available for CEC which demonstrates these examples? Which HTTP header contains this token value?