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

Generic Custom Authentication

Avatar

Avatar
Boost 1
Level 1
Marco_Aurélio_S
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Marco_Aurélio_S
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Marco_Aurélio_S
Level 1

27-07-2016

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Boost 50
Employee
Bob_Bringhurst_
Employee

Likes

88 likes

Total Posts

411 posts

Correct Reply

113 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Bob_Bringhurst_
Employee

Likes

88 likes

Total Posts

411 posts

Correct Reply

113 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Bob_Bringhurst_
Employee

27-07-2016

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

Avatar
Boost 1
Level 1
Marco_Aurélio_S
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Marco_Aurélio_S
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Marco_Aurélio_S
Level 1

27-07-2016

​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