Authenticate without properties file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2021 12:56 AM
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2021 05:03 AM
You would have to write a custom configuration to create a Feign request interceptor that handles the authentication on requests. Alfresco's default is handled via the BasicAuthRequestInterceptor configured based on the properties.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2021 06:08 AM
Thanks @afaust
Can we use this
the only issue is like the class AuthenticationApi is not available after adding the dependency which has been mentioned in the above link.
So don't know how to resolve this dependency.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2021 07:13 AM
You could use it - if Alfresco did not, for some reason, "forget" to generate the Java classes for that API based on the Swagger configuration. You should file an issue with that project for this particular bug.
