cancel
Showing results for 
Search instead for 
Did you mean: 

Get user details over oAuth from C4C

Former Member
0 Kudos

hi,

I am trying to

  1. get oAuth tokenn of enduser to make api calls to SAP C4C to get his details
  2. I am comfortable with java and found the link: venkyvb/OAuthSAMLClient · GitHub to make api calls.

however the link above tells to configure oAuth IDP and oAuth Client. I am finding it difficult to figure this out. I am given an instance and I was told that i have administration role in it. However I couldnt find a way to configure oAuth IDP and oAuth client (like couldnt find the adminstration work centre in the instance). Now am i missing something? (attachment)

I have another userid and pwd which is supposed to have 'S' user role (with a diff website address) now logging here doesnt help either. Can somebody help me please? I am kind of stuck badly here!

Thanks,

Ravi

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member205826
Participant
0 Kudos

Hello Ravi,

Please see the documentation under SAP Cloud for Customer Administrator Guide to configure the settings for oAuth Identity Provider.

Pfa  screenshot to help locate the configuration option in the Administrator work center.  The 'Common Tasks' option is available to me when i place the cursor on 'Administrator' work center and not click on it.

Best regards,

Sailaja

Former Member
0 Kudos

HI,

the link says:


In the Administrator work center, under Common Tasks, choose Configure OAuth 2.0 Identity Provider

.

But i cant find the Configure oAuth.2.0 in the drop down menu

Any help?

former_member205826
Participant
0 Kudos

Hi Ravi,

Under (Beta) Administration -> Business Roles - > Edit Business Role (your role) -> Access Restrictions, please verify if you have the required 'Unrestricted' access to the Work Center View ID SECURITY_OAUTH_CLNT_REG (work center view name - OAuth2.0 Client Registration)

Best regards,

Sailaja

chandansb
Active Contributor
0 Kudos

Hello Ravi,

I am not sure if I completely understood your question, however I guess below links should help you.

Also you mentioned that you do not see Administration Work Center, for this you check your Access Rights and get the Work Center (BETA) ADMINISTRATION assigned to you. However I think the Work Center ADMINISTRATOR should also suffice your requirements to perform the required steps.

Hope this helps.

Regards,

Chandan

Former Member
0 Kudos

hey thank you for the reply.

I had tried 1st link, which took me to connectivity btw c4c and hcp (http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4080d9d6-7031-3310-d596-eff279c4f...) however, on page 3 it tells to select an account and click trust. The problem is i cant find my c4c account here. I created the hana account using my 'S' user credentials

The 2nd link took me to a pdf on integration btw C4C and HANA via HCI. However it requires me to raise BCP ticket. I couldnt find where to raise the ticket.

----------------

You mentioned the qn is not clear so the background..

  1. I am thinking to create a mashup in SAP C4C (i.e.. i assume some iframe in which my website sits)
  2. on opening the page/mashup authenticate the end-user.. So i am thinking of getting oAuth token of end user via accept or deny screen. Once obtained query C4C server using the token and get userinfo and authenticate

Now i started with the point 2 above. To get oAuth token i see this page: venkyvb/OAuthSAMLClient · GitHub which to get executed i require client id, secret, keystore etc.. which i couldnt find.

chandansb
Active Contributor
0 Kudos

Hello Ravi,

YOu mentioned that second link took you to some PDF with HCI integration!!

Well I have posted a link for C4C specific configurations that need to be done, posting it again

Regards,

Chandan

Former Member
0 Kudos

Sorry, I went thr the link, but I couldnt find the screens in the screenshots with my C4C (as admininstrator) a/c or HANA (trial ac) I am very new to SAP. Or it could also mean i dont have necessary roles to view the respective screens. I am not sure what i can do to take this forward

incase you think i have to contact somebody support/ sales.. can u share me the email address? or some communication.