<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Arul Murugan on Medium]]></title>
        <description><![CDATA[Stories by Arul Murugan on Medium]]></description>
        <link>https://medium.com/@arul.anand?source=rss-59448a0610ce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GYYMpYiIyYaajAuZkmDZsQ.jpeg</url>
            <title>Stories by Arul Murugan on Medium</title>
            <link>https://medium.com/@arul.anand?source=rss-59448a0610ce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:36:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arul.anand/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An Integration War — Java Spring with MEAN Stack]]></title>
            <link>https://medium.com/@arul.anand/an-integration-war-java-spring-with-mean-stack-a9e90dcb4d15?source=rss-59448a0610ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9e90dcb4d15</guid>
            <category><![CDATA[spring-security]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Arul Murugan]]></dc:creator>
            <pubDate>Tue, 26 Sep 2017 19:55:25 GMT</pubDate>
            <atom:updated>2017-09-26T20:19:38.822Z</atom:updated>
            <content:encoded><![CDATA[<p>Thank’s to A2A,</p><h4>This weekend, a series of 401 Error messages from the Crome Developer Console led to a widescale war among build ‘s— in the Frontend, Backend and beyond.</h4><p>Yeah…you guessed it right…we integrated SPRING Powered backend with MEAN Powered Frontend.</p><p>I assume you are expert at both spring &amp; MEAN stack..so,let me get in to the point why this may be a solution that you’re looking for…!</p><h4><strong><em>Because we combined “ OAUTH 2.0 + J JAVA WEB TOKEN + RBAC ”</em></strong></h4><p><a href="http://projects.spring.io/spring-security-oauth/docs/oauth2.html">spring reference documentation</a>’s are excellent, but in this case..daddy(java) forgot that puppy’s(MEAN) existence…!</p><p>so we implemented “oauth/token” along with own ingredient’s…</p><p>$ curl client:secret@localhost:8080/oauth/token -d grant_type=password -d username=user -d password=pwd</p><p>Right After implementation’s at backend, we tested with <a href="https://www.getpostman.com/postman">toolchain</a> , but puppy was not happy about the ball that we thrown…</p><p>Passing the client id and secret as prefix in request along with @ symbol followed by IP address/oauth/token lead to the HTTP (hyper text transfer Protocol) Error..401 unauthorized</p><p>so, than i passed client secret &amp; id as query param value….!</p><p>Tried Special Recipe like this</p><blockquote><a href="http://localhost:8080/oauth/token?client_id=client&amp;client_secret=secret"><em>http://localhost:8080/oauth/token?client_id=clientid&amp;client_secret=secret</em></a></blockquote><p>It’s Eureka…:)</p><p>Now the puppy is happy…..!</p><p><a href="https://i.imgur.com/OC0bwph.mp4">https://i.imgur.com/OC0bwph.mp4</a></p><p>PS: 1:21 AM / 27.9.2017 Eureka Moment…:)</p><h4>References &amp; Useful Readings:</h4><ul><li>Spring Boot 1.5.3.RELEASE go to <a href="http://docs.spring.io/spring-boot/docs/1.5.3.RELEASE/reference/htmlsingle/">http://docs.spring.io/spring-boot/docs/1.5.3.RELEASE/reference/htmlsingle/</a> to learn more about spring boot</li><li>JSON Web Token go to <a href="https://jwt.io/">https://jwt.io/</a> to decode your generated token and learn more</li><li>Spring Reference — WWW.SPRING.IO</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9e90dcb4d15" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>