Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,179
Community Members
 
Community Events
184
Community Groups

Custom OAuth2 plugin

I'm developing a custom plugin to integrate Jira 6.3.14 with an OAuth2 server.

First of all, as described here I changed seraph-confix.xml and extended JiraSeraphAuthenticator.

I overrode the method Principal getUser(HttpServletRequest request,
HttpServletResponse response). The first thing the method has to do is redirecting the user to the server to allow the user insert their credentials in a form via "response.sendRedirect(url);". The method getUser however gets called more than once. The first time, response is not null but the following times it becomes null and when finally response.sendRedirect(url) gets called I have a NullpointerException. Whys isn't this working? Do I have to change my web.xml in some way as well other than editing seraph-config.xml? can I perform a redirection inside the getUser method?

1 comment

Sam Hall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 08, 2017

Probably worth posting this on the dev community if you haven't already: https://community.developer.atlassian.com

Thanks. It's my first post I didn't know about the existance of the developers forum. Thank you!

Sam Hall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 08, 2017 • edited

No problem. It's not obvious unless you know! Hoping Atlassian will sign-post it a bit more clearly.

Anyway, here's a link to the thread you opened there in case anyone seeing this wants to answer or read: https://community.developer.atlassian.com/t/custom-oauth-2-0-plugin-development/3528

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events