Im building and end to end automatic process to create and print pdf documents based on an input document for my client. As it is a serverless application Google cloud printing is used for printing purpose. But each time when a user try to get an access token, a browser prompt is opened to select the user. If i have the username and password of the client , is there anyway that i can bypass this browser prompt.
Every example and stack overflow threads leads me to this same browser prompt.
Related
I am trying to access some services that require a google login. I thought it would be a really neat idea to automate it and have been trying to do so. Whenever I use my script to launch my service its asking me to sign in with google account. I am tried to automate that also in automation but I am getting captcha . Please someone help me in do this.
I have tried in one way:
By default, ChromeDriver will create a new temporary profile for each session. Manually u won't get sso as it is using stored cache. So the solution is u need to create and load custom profile
Something like this
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=/path/to/your/custom/profile")
Note : Its work fine when I run in single thread but When I am running in multiple thread I am getting an error message saying "Directory already in use".
I've a problem with WebSphere Commerce and HttpSession. If I close browser page and then I re-open it I continue to the last session, until now no problem. When I do the first logon I send my user data to a program to trace my action but if I close and I re-open browser page the trace program "lost" session and the system not send my data to the trace program because I'm already logged.
How I can know when the browser page is open with a exist session?
I tried with a HttpSessionListener implementing the methods sessionCreated and sessionDestroyed but sessionCreated method is call only when I logon.
Any idea? I thinking to use a Listener or a Filter.
Thanks to all!
Thanks #Ranjith V for response.
I mean, I login in WCS then when I land in browser page there is a JS that know if I just logged and then it send my user data (user.123456.en) to a external system. This system trace my actions. When I close the browser I lost session with external system but in WCS my session continue. When I open a random page in WCS, as Home page or After sales, I already logged and JS not understand that must send my user data to external system. I need insert a variable in session if I open page and continue a exist session. The problem is here, how I know that this is a new browser session?
There is a java class that check if I'm logged and continue a session? If there is I extend it and insert my variable here and at last JS know if it must send data.
I hope I'm making myself clear.
Thanks!
I didn't quite get what you are trying to ask and what you mean by trace program. But you can use cookies to identify the session
How I can know when the browser page is open with a existing session?
WCS handles session using cookies. If you look at the request cookies, you know whether the user is authenticated or not. Look at the below article for more details on session handling
https://www.ibm.com/support/knowledgecenter/en/SSZLC2_7.0.0/com.ibm.commerce.admin.doc/concepts/csesmsession_mgmt.htm
I think you would need to use one of the below cookies
WC_SESSION_ESTABLISHED or WC_AUTHENTICATION_ID
Currently we have requirement to develop a custom Fiori App using external Restful Web services. I am able to get the data from the back end using basic authentication. Kindly find the below image for details. I have hard coded one of our back end user credentials in the image below.
Working code
Our back end is having only this basic authentication option to fetch the data. We have only this possibility to fetch back end data. Currently it is working fine with single user credentials. Now my requirement is that i will deploy this app in the front end server. We will be using Single sign on option for our implementation in Front end server. So front end credentials will be same as back end credentials.
After the user logged in from Fiori Client in the mobile. Is there any option to fetch the user credentials in the Java script from the current user session or from cookies so that i consume our back-end Restful service using the dynamic approach.
Please help me out.
Regards
Phani Poorna
The mentioned scenario might be possible if SingleSignOn is also configured for the backend.
Otherwise, we don’t see a possibility to get the SSO user credentials via Javascript from the current user session nor from cookies.
I just started using Parse and am very excited to get my app up and running, but am having an issue getting the current user in my server code.
I am using Parse.FacebookUtils.logIn to register and log in users for my Parse application.
After a user logs in, calling Parse.User.current() produces the correct result on the client side, but returns null on the server side.
Do I need to explicitly set the current user in my cloud code?
Thank you!
Calls to Cloud Code have the current user in request.user, you don't user Parse.User.current() server-side since they aren't logged in server-side.
var currentUser = request.user;
That's the code you use in the cloud.
I have a GWT application that would like to read a Google Drive spreadsheet given a public read only url such as https://docs.google.com/spreadsheet/ccc?key=0Aj9YCks8-__hdGU5RHFSRzk4WFNHT3RjRWlsVGdGT2c&usp=sharing.
I can read this from a browser in csv format using this url: https://docs.google.com/feeds/download/spreadsheets/Export?key=0Aj9YCks8-__hdGU5RHFSRzk4WFNHT3RjRWlsVGdGT2c&exportFormat=csv&gid=0
However, this does not work unless the user is logged in as a google user.
Given a public spreadsheet key as shown above, how would one query the spreadsheet using server side queries or apis from GWT? I've seen references to a GWT Drive API but nothing other than coming soon for the last year or so.
It's a browser security, you can access to url in other domain than your server.
You must pass by your server to call your URL with a script proxy.