Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Howto test if my browser is already authenticated with JAS (Jazz Authorisation Server)

Hello,

is ther any URL provided by JAS server, which returns me if I'm already authenticated or not?

E.g I would like to send a http message to an URL with my SSO tokens, and if I'm already good, it should return a Code 200 and if not a 401.
Or instead a 401, a 302 to the login Form.

Which URL can I use for this with JAS?

I need this for a nginx reverse proxy with auth_request directive as gatekeeper.

regards
Guido



1 vote

Comments

Excellent question. Given extra cycles I will dig into the latest Eclipse Lyo code to see how they handle authentication against JAS. Maybe there is a hint as to that URL.



One answer

Permanent link

 Hi Guido


I am not sure if this would work for you, but as a workaround you could deploy the snoop application on JAS (Liberty Profile) and access https://jas_server:9643/snoop and check what it returns.

I deployed snoop and tried a quick test. It returns 401 when the browser is not authenticated through oidc and 200 when it has already authenticated.

Regards
Shubjit

0 votes

Comments

Hello Shubjit,

do you have some instructions how I get snoop up and running in liberty?

Where is the application available to deploy and what do I have to configure?

I tried to use the defaultApplication.ear from Websphere Application Server, but it does not start correctly.

regards
Guido

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,075
× 31

Question asked: Jan 15 '18, 4:49 p.m.

Question was seen: 4,003 times

Last updated: Jan 29 '18, 3:41 p.m.

Confirmation Cancel Confirm