SAPUI5 Login page? - javascript

i cant find any simmilar to my question soo i want just to know if i can make a "login page" my own instead of the popup
this there a way?
My application is deployed on the cloud platform and goes trough a cloud connector to the sap backend system where it get his odata data from..
Its kinda ugly and i cant find anything to this.. except when the app is deployed in the abap repository.. but my is deployed and running trough the cloud platform.
(Username = SAP User and password also sap user pwd)
so maybe someone can help or paste an example

This pop-up is appearing for the logon to your ABAP backend system.
You can simply remove it by setting up Single Sign-On

Related

Azure AD error when fetching access token & login

I got the error when trying to get an access key for one of our APIs.
"AADSTS65001: The user or administrator has not consented to use the application with ID '{GUID}'
First, I was trying to prompt=consent during login, thinking that I had new consents that weren't prompted during login. And I got the following error.
"AADSTS65005: The application '{GUID}' asked for permissions to access a resource that has been removed or is no longer available. Contact the app vendor."
I removed prompt=consent and started fiddling with the permissions in Azure, and now I was stuck on the same error.
I changed everything as it was, but I still get the error. However, this only happens to my user. Everyone else can still log in without problems.
So my problem is actually in two parts:
The first error when trying to get an access token for the API.
Somehow I need to prompt the user with consent, but I am using adal.js which uses a silent retrieval of the keys using an invisible iframe. I want the support to be when the user logs into the web app.
Is this possible?
My user can't log in to our web app anymore. Everyone else can. Did anyone encounter this before?
The product is a SPA Web App written in React, and we use adal.js (adal-vanilla) as a library for authentication to Azure AD.
Update
I finally got some stuff working. Not all the way, but at least it's a start.
The problem with this is that users registered on other tenants (this is a multi-tenant app) don't get consent to use the API. These users get the error. However, I registered a user on the same tenant, and everything worked as intended.
Problem two was solved by removing all the permissions, adding them one by one, and testing in between. Somehow this worked after two-three tries.
The problem is that users from other tenants don't get a consent prompt to access the API.
Somehow the issue got fixed, I'm not 100% sure how or why but here are the steps I performed to fix it if someone finds themselves in a similar situation:
Ensure that all permissions are correct (APIs are added as delegated permissions to the client)
All services (web app & apis) are multitenant
Update manifest with:
"availableToOtherTenants": true,
"knownClientApplications": [
"{client app application id}"
],
(availableToOtherTenants was false for the API even though it was marked as multitenant in the settings)
The consent might be possible to fix with prompt=admin_consent.
As for the second problem, you can add your web app as a known client application of the API. This will allow simultaneous consent when the user authenticates to the web app.
To do that, find the API app registration in Azure Portal's Azure AD blade. Then open its manifest (there is a Manifest button on the app blade). In there should be a "knownClientApplications" property. Add the client id of the web app in the array and save the manifest.
E.g.:
"knownClientApplications": [
"bda6ffff-ffff-ffff-ffff-ffff8bf8c57f"
],

How to auto login into login page after user exits the app?

I have a login page via WCF restful APIs. I am logging in and now the problem after logging in if user exits in the app and try to re open the app, the app doesn't want to ask the user for credentials by storing the previous credentials. It has to automatically redirect to the another page. Any ideas, suggestions? I'm using JavaScript and HTML & Cordova.
Take a look at this answer
Cordova app with autologin feature
This answer is one of the best ways to implement autologin in hybrid apps, to me.

Meteor - Facebook Graph Api

I am creating a meteor app. I successfully implemented the facebook login but now the last feature I should implement is to create a chat (involving facebook messenger) between the page(admin) and the user. It should happen through the app. Could I do that with meteor or I should use javascript. The second question, if it is not possible with meteor is how to initialize the messenger conversation, if I by using the facebook user Id which I already know from the registration. I know that there are a lot of discussions about the graph-api but I could not find anything which includes meteor.
You can utilize in app deep linking to direct a user to the messenger.
fb-messenger://user/%s
the %s represents the user-id of the user who will receive the message!
Android as well as iOS will handle these requests properly.

how to login to mybb forum from an intel xdk application

for christmas i'm developing an intel-xdk app to send to all the users of my mybb forum.
The app need to authenticate the user, only registered forum users can login into.
a first way i thought is to add a php function into the website and call through ajax passing username & password. In this case i know how to implements.
just for learning i would like to know if there is a way to use all the existing server code.
can one intel-xdk authenticate one user over mybb forum? if yes what's the way?

SOAP Web Service Single User Login Integration

Working on a project where i need to implement single-user login, or letting them use the same login on their main website, as well as on another site. Right now they are using a SOAP web service. I have used my googlefu to try and work this out, but I need some help.
https://www.kappaalphatheta.org/gateway2/production/com/theta/authentication/AuthenticationGateway.cfc?wsdl
Just above this is a link to their service. I am using a .net authentication service on our website. With no experience in SOAP or authentication, how can I set up my site to authenticate a user from their service, and also pull other information like address and email address?
I have looked at their site, and they are using javascript and not PHP, whereas on google most people use PHP. I would prefer to keep using JS or jquery.
Thanks for looking, and help is appreciated.

Categories

Resources