OSLC Request Token
Hello colleagues,
|
Accepted answer
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica; min-height: 22.0px} </style> Hello Tiberius,
It sounds like you're trying to authenticate between an OSLC client and RM. This is more of an OAuth issue than an OSLC issue. You should only need to authenticate with RM. RM will authenticate with JTS as needed.
Establish a friend relationship between RDNG (RM) and your OSLC client in the RM admin page. When you create the friend relationship, you'll establish a consumer key that you can use in your client to authenticate with RDNG. If I'm not mistaken, you provide the consumer key when you need to do 3-legged OAuth to get your token. You still need to do 3-legged OAuth (the login you asked about) because you need to have a valid token. Tokens expire, so when you need to re-acquire a token you'll need to re-authenticate.
To answer your final question, you can try the token from step 1. If it fails, then you'll need to do all 3 steps to re-acquire a token.
Here's some Lyo code that provides a sample of OAuth client authentication (2-legged). There are other samples in Lyo that you can take a look at as well. <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica} </style>Tiberius Opitz selected this answer as the correct answer
Comments
Tiberius Opitz
commented Mar 14 '17, 5:06 a.m.
If you want to use the code, please take in consideration that for Jazz the call for the aouth-token-request need to be a POST request and not like common for oauth a get.
|
One other answer
Dear Jim,
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.