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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Generic Custom Authentication

Avatar

Level 1

Hello,

I have a doubt about the Generic Custom Authentication.

I already have a service entitlement following specifications of the "v2 Direct Entitlement APIs".

I created an article with a custom UI using 3 fields to authenticate with the server. The server makes a POST request and returns me a token in my Android app.

With the token, I call the setAuthToken method to authenticate my user, so the user is authenticated in the application and then he can access the collections restricted and protected.

I took the same code of the article and I uploaded to my web server.

And following the set up of custom authentication went to Master Settings > Identity Providers. I filled in the field "Authentication URL" with my custom URL.

But when I open the app or the web version, I get the following error message:

          Failed to load resource: the server responded with a status of 404 (Not Found) cordova.js

          Uncaught ReferenceError: cq is not defined

So my question is how to fix this issue both in the mobile and webviewer version.

2 Replies

Avatar

Employee

One possible problem is that you need to wait for the ‘deviceready' event in order to ensure everything needed is loaded and ready. Can you provide a link to the article either here or to me directly? bbringhu at adobe.com

Avatar

Level 1

​Thank you so much for answer me Bob!!

​Can you provide your email to me? That way I can send to you my code, my email is marco.goncalves@kroton.com.br