Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Exposing assets through OAuth 2.0 access token

Avatar

Avatar
Level 1
vyacheslavk2787
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
vyacheslavk2787
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
vyacheslavk2787
Level 1

09-04-2019

Hi,

Following AEM guides I was able to enable OAuth 2 authorization in AEM and receive an access token in "profile" scope. However I would like to access more than profile data with this token.

This guide: https://www.albinsblog.com/2017/07/exposing-resources-through-oauth-aem.html mentions an Adobe Granite OAuth Resource Server configuration in configuration console, however I was not able to locate such configuration category in my installation.

Following another guide I was able to implement a custom connector with a custom scope, which has

public String getResourcePath(User user) {

   return "/content/dam";
}

public String[] getPrivileges() {

   return new String[] {

   "crx:replicate",
   "rep:write",
   "jcr:all",
   };
}

in it. I'm able to use this scope, however that still doesn't seem give the token user proper access to asset nodes.

Is there anything I'm missing? I'm using AEM 6.4


Thanks

Replies

Avatar

Avatar
Validate 1
Level 3
a_mn1
Level 3

Likes

14 likes

Total Posts

84 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
a_mn1
Level 3

Likes

14 likes

Total Posts

84 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
a_mn1
Level 3

09-04-2019

Avatar

Avatar
Level 1
vyacheslavk2787
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
vyacheslavk2787
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
vyacheslavk2787
Level 1

09-04-2019

Hi,

Yes, I have seen that post, however the links attached to the answer are broken and I'm not exactly sure on how to implement the Oauth2ResourceServer in my code. I haven't managed to find any working examples so far