since ‎28-07-2020
‎24-08-2020
bandersen_hoodoo
Level 1
Re: Binding a servlet to a custom configured path
Avatar

bandersen_hoodoo

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

239

Likes

0

Replies

0
Re: Binding a servlet to a custom configured path
Avatar

bandersen_hoodoo

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

270

Likes

0

Replies

0
Binding a servlet to a custom configured path
Avatar

bandersen_hoodoo

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

355

Likes

0

Replies

9
Re: Attaching a header to the Oauth Token endpoint responses
Avatar

bandersen_hoodoo

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

157

Likes

0

Replies

0
Attaching a header to the Oauth Token endpoint responses
Avatar

bandersen_hoodoo

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

226

Likes

0

Replies

5
Likes given to