M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Regular Contributor
Posts: 183
Registered: ‎11-17-2015
Accepted Solution

Create custom login page

Hello,

 

Is there a way/procedure to create a custom login page which use MAE underlying authentication?

This login page will then be able to redirect to a specific MAE App.

 

Thank you.

Yohann.

 

Regular Contributor
Posts: 272
Registered: ‎03-10-2016

Re: Create custom login page

Hi Yohann,

 

I think this is possible. Have you checked out this tutorial? It works fine for me (access without login).

 

So I think you can create your own page with a login and credentials you want and then redirect to M.App Enterprise.

 

Hope that helps

Stefan

GAUSS Ingenieurtechnik GmbH | Germany
Regular Contributor
Posts: 183
Registered: ‎11-17-2015

Re: Create custom login page

Thank you Stefan. This tutorial helps us creating our own login page.

Regular Contributor
Posts: 183
Registered: ‎11-17-2015

Re: Create custom login page

Hello,

 

I can create a token and login successfully to an app.

Now I try to logout.

 

For that I use:

function revokeRefreshToken(r, a) {
   return $.ajax({
     url: host + '/api/v1/oauth2/token/revoke',
     data: JSON.stringify({
       grant_type: "refresh_token",
       refresh_token: r
     }),
     contentType: "application/json",
     type: "POST"
   }, a);
}

But I get a 401 error. Do you know why?

 

I am calling the function as bellow:

 

revokeRefreshToken(token.refresh_token, token.access_token)

Thank you!