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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

bandersen_hoodoo
Community profile bandersen_hoodoo Level 1
Job title here
Location here
4 BADGES
Level 1

Level 1

Learn more
Joined the community 28-07-2020 9:31:20 AM
Offline
Top badges earned by bandersen_hoodoo
Customize the badges you want to showcase on your profile
Re: Binding a servlet to a custom configured path
Avatar
Give Back 3
Level 1
bandersen_hoodoo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
bandersen_hoodoo
- Adobe Experience Manager
We'd like the user of our API to be able to set the path elsewhere in case they don't have access to /bin/ or are expecting a specific path on AEM's side that isn't the default.

Views

380

Likes

0

Replies

0
Re: Binding a servlet to a custom configured path
Avatar
Give Back 3
Level 1
bandersen_hoodoo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
bandersen_hoodoo
- Adobe Experience Manager
Unfortunately our servlet isn't front-end facing, so a dispatcher isn't used. It's purely an author API.

Views

411

Likes

0

Replies

0
Binding a servlet to a custom configured path
Avatar
Give Back 3
Level 1
bandersen_hoodoo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
bandersen_hoodoo
- Adobe Experience Manager
Hi there, I was wondering what best practice would be to bind a servlet to a custom path based on a config. This servlet is an API endpoint, so selectors won't help us too much. For example, I have a servlet at /bin/foo/files, and I'd like to be able to configure that path to be at /bin/bar/files, or even /bar/files, based on an OSGi config or something similar with the path inside.

Views

520

Likes

0

Replies

9
Re: Attaching a header to the Oauth Token endpoint responses
Avatar
Give Back 3
Level 1
bandersen_hoodoo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
bandersen_hoodoo
- Adobe Experience Manager
Hi @ChitraMadan ,I'm currently interfacing with a pre-built solution on the other side. When we send the final token response back in AEM after they POST to /oauth/token, we aren't sending any information on the response about the formatting, so the other side casts it to an octet-stream, which causes it to break as it is expecting application/json. I just need to add on that information so that the server on the other side reads the data correctly. If there's no good solution for this, we could...

Views

265

Likes

0

Replies

0
Attaching a header to the Oauth Token endpoint responses
Avatar
Give Back 3
Level 1
bandersen_hoodoo
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
bandersen_hoodoo
- Adobe Experience Manager
Hey there, I'm trying to get AEM to append a content-type header to the response of /oauth/token, as the remote server posting a token is expecting the application/json type back. I'm currently trying to use filters to achieve this, and I can get a filter to activate on pretty much every request EXCEPT the /oauth/token endpoint. Is there a way I could get the filter to activate on that endpoint, or a better way to go about this? Thanks!

Views

339

Likes

0

Replies

5
Likes given to