Pages

Friday, May 27, 2016

ForgeRock OpenAM 13 and Social Login Part 2: Google

How to easily configure Google with OpenAM 13

This is a quick guide to setting up Google as a social authentication module for OpenAM 13. Prerequisites are a working OpenAM13 environments and a google developer account. This will be needed to obtain a client ID and client secret that you will need to use when you configure the authentication module.

Obtaining a Google App ID and App Secret
Go to console.developers.google.com. Login with your google account. On the left frame, under API Manager, click on the Credentials link.



On the APIs Credentials box, click on the ‘Create credentials’ and select 'OAuth client ID’.



Select ‘Web Application’ as the Application type. Give it a name and add the openam service URL under the Authorized Javascript origins. It is also important you add the Authorized redirect URIs for OpenAM. This is http://host:port/openam/oauth2c/OAuthProxy.jsp.



If this is the first application profile you create, you will be prompted to fill in some information related to the consent screen which users will see when they are asked to authenticate using their google account.



Once the profile is complete and you click on save you will receive a pop up with the client ID and secret.



Here you will copy the Client ID as well as the Client Secret. You will need both of these when configuring Google Authentication Module on OpenAM.

Configuring OpenAM 13

Now login to the OpenAM admin console at http://host:port/openam/console
Select the realm you intend on setting up social authentication module on.

Click on Configure Social Authentication:



Click on Configure Google Authentication



Enter the Client ID and Client Secret and click Create to continue. The Redirect URL is automatically populated.



Once created you will get a success message.



Expanding on the Authentication section and clicking on Modules will show a new ‘GoogleSocialAuthentication’. In addition a new chain is also created using this new module named 'GoogleSocialAuthenticationService’.



Click on the module to look at some of the default settings.

Note in particular two settings:




With these two settings, users who successfully authenticate against Google will have a profile dynamically created in your data store. Your Google users will be pre-fixed with identifier “google-“ as shown in the attribute mapper. You can modify that here if you wish to remove or change that.

Testing Google Authentication

Simplest way to validate the Google authentication chain is to update the Authentication settings and make the chain the default Organization Configuration Chain.



Test the authentication by going to http://host:port/openam. This should automatically redirect you to the Google authentication.



Google’s consent screen will appear.



Once you allow and successfully authenticate with Google, you will be redirected back to OpenAM, have your profile dynamically created, and logged into the console where you will see your profile.



Logged in as OpenAM admin user, search under subjects for the new Google created ID, you will see which attributes were shared from Google.



And that competes the setup for the Google Authentication module for use by OpenAM 13. As with any module you don’t need to set it up as the default Authentication chain used by the realm. It can appear as an icon on the login page or you can invoke the authentication chain via REST for complete UI control.



Using REST APIs via postman client



End

66 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I read your blog frequently, and I just thought I’d say keep up the fantastic work! It is one of the most outstanding blogs in my opinion. pizza logo design

    ReplyDelete
  3. Your logo should put over an unmistakable message to potential clients about your business, items and administrations and in doing as such guide their basic leadership with regards to acquiring from you. logo design service

    ReplyDelete
  4. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. smm panels list

    ReplyDelete
  5. I personally like your post; you have shared good insights and experiences. Keep it up. social work recruitment agency

    ReplyDelete
  6. If you are looking for more information about flat rate locksmith Las Vegas check that right away. myigfollowers.com

    ReplyDelete
  7. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks first reseller panel

    ReplyDelete
  8. Nice to read your article! I am looking forward to sharing your adventures and experiences. ip adresim ne

    ReplyDelete
  9. I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. logo store

    ReplyDelete
  10. It is imperatively significant that you build up a convincing vision, qualities, reason and crucial your business that gives you the lucidity and grit to withstand the good and bad times that any business will unavoidably have.payroll singapore

    ReplyDelete
  11. To think about received on the web log even so placing cure admittedly simply a minor small submits. Gratifying way of probable potential, Were book-marking at a time risk-free versions end soars jointly. online store Australian

    ReplyDelete
  12. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. miniature diy doll furniture

    ReplyDelete
  13. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! Grow Followers

    ReplyDelete
  14. I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. opencart data entry

    ReplyDelete
  15. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! www.seorango.com

    ReplyDelete
  16. Really I enjoy your site with effective and useful information. It is included very nice post with a lot of our resources.thanks for share. i enjoy this post. https://sites.google.com/site/hotmailloginonline/

    ReplyDelete
  17. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. Aegean College

    ReplyDelete
  18. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Jasa Pengiriman dari China yang Murah dan Cepat

    ReplyDelete
  19. Thank you for some other informative website. The place else may just I get that kind of information written in such a perfect method? I have a venture that I am simply now running on, and I’ve been at the glance out for such info. buy instagram likes

    ReplyDelete
  20. Truth be told, making profiles is regularly the 'most effortless' some portion of the procedure. cheapest smm panel

    ReplyDelete
  21. Social media management teams know how to optimise your online presence so breaking news that your business ranks well with search engines like Google, Bing and Yahoo. This means that new customers will be driven to your web site as they will be able to find you.

    ReplyDelete
  22. If you live in Greenville, SC and are looking for a roofing contractor to help you with your roof repair or installation look no further. We are a professional roofing company and can provide you with anything your home might need. roofer

    ReplyDelete
  23. This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… hotmail login

    ReplyDelete
  24. A wave of our all-natural Lelu Soaps and bath products, treat yourself with your body submerged in our rich combinations of natural oils and butters. They are beneficial to the skin; revitalize your energy and help you achieve mental serenity. Made with all natural ingredients and 100% pure and natural additives and essential oils to soak into your skin and exfoliate and leave your skin feeling amazing!
    natural handmade soap , natural soap bar , Vegan Bath Bomb , Lelu Bath Fizz Collection , clean beauty products , organic skincare

    ReplyDelete
  25. Web 2.0 provides you with various tools and techniques that buy cheap tiktok followers help you to generate leads and increase the exposure of your home-based business. Social media is one such tool.

    ReplyDelete
  26. area 51 iptv
    The face of television has changed over the years. For decades, people had to deal with cable providers to deliver content to their TV sets. However, this model has been replaced by modern technology innovations. The game-changing services like Area 51 IPTV have entered the entertainment market to disrupt the traditional model once and for all.

    ReplyDelete
  27. You Don't Have a Team To Help You. If you're doing your social media all by yourself, it may be time to delegate some of that task as part of your marketing team. your input here

    ReplyDelete
  28. kore trak watch makes it easy to understand and monitor your health. A quick glance at your wrist and you will be able to track all your key vitals such as heart rate, steps taken, and calories burned.
    The no-fuss interface also allows you quickly to set up your workout with less planning so you can just focus on achieving your goals.

    ReplyDelete
  29. As we all are embracing the machine culture to our everyday life, putting it on Social Media can create interesting engagements. Google Maps Scraper

    ReplyDelete
  30. Some notable organisations claimed spectacular results. However, engaging in Social Media marketing is a challenge particularly in integrating it into a companies existing marketing plan and to meet company expectations on profitability, and it's not for everyone. official site

    ReplyDelete
  31. idgod
    Our product designs are high quality, effective, and combined with fast delivery and top-notch production system, make sure get your order faster. If you want get a high quality ID, IDGOD is trustworthy. We have over 50 Fake IDs.IDGOD has been the best fake id maker in the market for over 15 years. Order yours today!


    ReplyDelete
  32. We're Hollywoods elites best kept secret for spray tanning . Many popular celebrities have been spray tanned where the spray tan artists use our spray tan formulas. Our formulations or spray tan solutions and products are known to produce the most natural looking spray tans for over the last decade. We use the highest grade DHA in our products along with the finest skin care ingredients most being natural or organic. All of our products are safe for all skin types, not tested on animals and paraben free. We have trained over 300 professional spray tan artists most from USA but many have flown from other countries too to get VIP certified.
    best spray tan solutions ,
    best spray tan ,
    natural spray tan ,
    organic spray tan ,
    spray tan solutions ,
    celebrity ,
    models ,
    runway models

    ReplyDelete
  33. Here is a wide rundown of lawful concerns your business may confront identifying with social media: CBT Bulk Email Sender Software

    ReplyDelete
  34. clover thermal paperIPS allows businesses to accept payments in multiple ways, typically we provide debit or credit card machines. We are providing in-store and online payment solutions, Countertop terminals (debit machines), Long/Short Range Terminal, POS systems, ATM and Thermal paper rolls for debit machines and Credit Card Machines & Printers.

    ReplyDelete
  35. Its an incredible joy perusing your post.Its brimming with data I am searching for and I want to post a remark that "The substance of your post is marvelous" Great work. valve pabrik kelapa sawit

    ReplyDelete
  36. The app will do a similar what you advise to do. On the off chance that you have booked to post a blog tomorrow, it will tell you today that you need to compose a blog. Thusly, as I would like to think, this is the best android app for your pre-plan of anything. https://www.social-matic.com/social-media-tips-to-grow-your-business/

    ReplyDelete
  37. cebanqq1.vip
    cebanqq merupakan situs judi online qq, poker online, dominoqq terpercaya

    ReplyDelete
  38. I think this is an educational post and it is helpful and learned. in this manner, I might want to thank you for the endeavors you have made recorded as a hard copy this article. en uygun uçak bileti

    ReplyDelete
  39. This Divi theme review for 2020 was written by a professional web design agency with 15 years of experience. Divi is a popular Wordpress theme with the best page builder available for Wordpress.

    ReplyDelete
  40. find a job you love on Lensa! Search millions of jobs online and find companies who are hiring now on our new job board.

    ReplyDelete
  41. The result of a game, competition or an uncertain event is called gambling. Gambling risk and profit prospects are very uncertain. The rules by which gambling games are played sometimes allow some players to manipulate the game to serve their own interests. So, it is important to have knowledge about the game.

    먹튀검증
    사설토토

    ReplyDelete
  42. 먹튀검증완벽한사이트저희먹튀커머스는 2016년 5월부터지금까지먹튀커머스를믿고방문해주시는유저분들을위해더이상먹튀없는공정한배팅문화를만들기위해서항상노력하고유저분들에소리에귀를기울리는 NO.1 먹튀검증커뮤니티입니다. 또한먹튀커머스에서는무분별한배팅사이트들을일방적으로추천하지않고철저한검수작업을토대로사전에먹튀사고가발생안되게끔유저분들에게추천하는만큼저희측에등록되어있는배팅사이트내에서혹여먹튀가발생한다면오로지그책임은저희먹튀커머스에있음을알려드립니다.먹튀검증

    ReplyDelete
  43. 안녕하세요먹튀잡고입니다먹튀, 먹튀검증의모든정보를제공하고있습니다항상저희먹튀잡고에방문해주시는배터여러분들에게감사드립니다. 저희먹튀잡고에서는배터여러분들에게다양한정보및소식들을드리고자항상최선을다하고있습니다혹여다른토토사이트이용하시기전에저희먹튀잡고에서진행하는인증업체를방문해주신다면 대단히감사하겠습니다. 저희먹튀잡고에서는추후발생할수도있는토토먹튀 에대해서 모든책임을지고있습니다. 요즘들어먹튀사이트가많이생겨나는 추세에배터님들자신의자산을안전히지키시길바라겠습니다. 이번에말씀드릴내용은해외에서운영하는사이트들과현지에서운영하는사이트들에대해서말씀드리고자합니다. 먹튀

    ReplyDelete
  44. Dear Romanians,
    The Romanian Embassy in the United Kingdom of Great Britain and Northern Ireland reminds Romanian citizens who want to obtain resident status in this country that they have only one year left for registration.To date, over 3.6 million citizens of the European conomic Area have applied for SETTLED or PRE-SETTLED status and over 3.3 million citizens have received the new resident status. Don't forget to apply in the next period to protect your current right to live, work and study in the UK, without restrictions, if you want to stay in the UK and after 30 June 2021. Visit for more information
    romani in uk

    ReplyDelete
  45. Professional partner to improve and boost your Alexa or Google rank.
    professional seo services

    ReplyDelete
  46. We’ve been in the essay writing help business for a couple of years now. Helping dozens of students to write better essays and turn in assignments faster every day, we know how important it is for you to rely on someone who knows how to do the job well A to Z. clubessay.com is one of the best young companies offering you skilled, result-minded essay writers, attentive editors, and devoted Support managers. All for an affordable price. All 100% secure.
    A strong work ethic is very important for us when hiring new writers and working with already-established experts. Everyone on the team - from essay writers to dissertation editors - have to see the bigger picture, which is helping every student with any assignment, any deadline, and any budget to succeed in a high school, college, or university.top essay writing services

    ReplyDelete
  47. Unsere Stoffmasken sind dank dem anpassbaren Ohrenbändel für alle Kopf- und Gesichtsgrössen geeignet. Die innere Lage aus 100% Baumwolle bietet besten Tragekomfort. Mund, Nase und Kinn werden vollständig bedeckt, ohne die Atmung zu erschweren. Die Masken sind bei 60°C bis zu 50 mal waschbar.
    Bestellen Sie je nach Bedarf eine entsprechende Auflage mit Ihrem Wunschmotiv, Logo oder Corporate Design. Sie wählen Farbe, Motiv und Position. Wir setzen Ihr Design um und bedrucken die Stoffmasken im Digitaldruck. So können Sie unsere Masken mit Ihrem Design speziell für Ihr Haus anpassen und zusätzlich als Marketingtool einsetzen. Wir bieten höchste Qualität zu unschlagbaren Preisen.stoffmasken kaufen schweiz

    ReplyDelete
  48. A largest online sexshop in Spain with discreet international shipments. “Your pleasure is our pleasure.Sexshop Express

    ReplyDelete
  49. I immediately experienced seven days of messages to discover solicitations to join in or see whitepapers, online courses and meetings. smm panel

    ReplyDelete
  50. At RPD Limousine we are committed to delivering the best in class, taste, and distinction, all while making sure to take special care of you and leave you safe and satisfied. Whether you need to be taken home from the airport, get your guests to your wedding reception, have a night out with your closest friends, or you just want to get to where you’re going in style and comfort, we’re here to offer the BEST service, the very varied selection of transportation at the best possible, affordable prices.
    RPD Limo Somerset County New Jersey NJ

    ReplyDelete
  51. A largest online shop is leslyenterprises. Its a way to escape the Running and minimize you time. “Your pleasure is our pleasure. The thing we buy should be from a reliable manufacturer and the quality of each specific ingredient should be ensured. And we promise to give you that good quality product. Top Deals at Factory Price.Confidently Place Orders Online via Trade Assurance! Logistics Service. Most Popular. Production Monitoring. Types:MACHINERY, CONSUMER ELECTRONICS, CAMERA & PHOTO, WOMEN MAKEUP ,SHOES, SPORTS,JEWELRY, APPAREL ETC. Baby, men and women cloth, makeup & jewellery is one of the leading silver jewellery retail. fore more information please visit.new born baby cloth

    ReplyDelete
  52. Oaperg builds software applications to enable business transformation, enhance customer experiences, and boost operational efficiency through its strategy, consulting, and engineering services.software development

    ReplyDelete
  53. At Encino Fireplace shop every product is designed & engineered to ensure the highest quality & performance. Our collection of stylish & unique fireplaces come from leading manufacturers across the globe, our beautiful gas, wood, and electric fireplaces are thoughtfully designed and expertly crafted. We’ve got you covered! indoor fireplace

    ReplyDelete
  54. Be cautions, however, and ensure social sites suited to the business, such as bookmarking sites for online retailers, appear just as you want them to be found. Automatic syndication has limitations and often links and pictures do not appear as you would like them to. save Facebook video

    ReplyDelete
  55. The Rio Grande Valley has seen much growth, expansion and many opportunities recently. With an influx of people and new business, there comes the obvious need for additional homes and land. Valley Real Estate Co. is pleased to have been and continues to be part of the future growth of the Rio Grande Valley. Some projects that we continue to be a part of include the expansion of expressways and roads in the La Joya, Pharr and Edinburg areas. One of our most ambitious projects is in Pharr, TX with the International Bridge Trade Corridor and the Pharr International Bridge. Progress may be tracked at PharrTexas.com. Valley Real Estate Co. is proud to be part of and share happenings in this deal which will be for sale in coming years. After a very long time of being ignored and overlooked, Rio Grande Valley land is finally starting to come alive - in a big way! In the 2007 Fortune Magazine Investor's Guide, the McAllen/Mission area was named the #1 place to own real estate. In the May 2008 issue of Money Magazine, even when the entire nation was in the middle of a "housing slump", McAllen home prices were slated to rise. Located about 75 miles upstream from the mouth of the Rio Grande River, the McAllen/Edinburg/Mission Metroplex is one of the fastest growing areas in the country. A place with a vibrant culture, a hotbed of international commerce and a rapidly expanding population, it's no wonder that McAllen real estate and Rio Grande Valley land and property are in high demand. If you're a real estate investor, speculator or developer, we invite you to take a look around our website and we hope that our properties interest you! rio grande valley land


    ReplyDelete
  56. Welcome to Gamefre.com ! One of the best websites for the cutest and coolest online games in the entire world. On this page you can find games from the category . On our portal you can play games of all genres and categories at any time. All games are free and available online. Do not need to download (Or you can also download some of our bundled games and apps), just click on and play. Every day we add new games, return to us for new games and experiences.We hope that our games bring you joys, relieve stress in daily life, and bring excitement to a new day.Thank you for visiting and playing our games. free online games no downloads

    ReplyDelete
  57. Grammar is a writing assistant. Get clear, constructive writing advice wherever you work. We provide clear, constructive writing advice that works where you work, enabling better understanding between people. Our products can help you with grammar, spelling, punctuation, brevity, clarity, readability and much more. Improve any text easily. Fix punctuation errors. Quickly find and add sources. Exclude grammar errors.
    best app for writers

    ReplyDelete
  58. Such sites are important because they provide a large dose of useful information ... custom patches

    ReplyDelete
  59. At Budget Boat Things we stock and ship a wide variety of boat parts, electronics, and accessories from the United States. We stock trusted known brands and ship directly from our 2 warehouses in the USA. We strive to always keep our prices low and affordable. We pride ourselves on our competitive prices and excellent customer service. In this blog, we will answer some frequently asked questions and supply you with a list of things you need to look for when buying a used boat; this list will give you a good idea of red flags to look out for.
    Boat parts

    ReplyDelete
  60. Have you experienced the new online course of this brand naming firm? I heard that it gives you access to brainstorming resources for you to use after the session. business people

    ReplyDelete
  61. Hello I really like your post and I think that it's curious. I would like to use it in my article. Is it possible? Of course, I will write a source 먹튀검증

    ReplyDelete