Vote count: 0 Google has a class that provides the "Sign in with Google" button called GIDSignInButton. To customize the button you have to modify the included properties. How do you do this properly in Swift? The button variable: @IBOutlet weak var googleSignInButton: GIDSignInButton! The properties are listed here: developers.google.com asked 21 secs agoAbout7Deaths Let's block ads! بخوانید...
ادامه مطلبVote count: 1 I am very new to what i am currently working now. I may not be explain well but as much i have understood i would like to put my understanding on the same. I am using the Owin token based authentication for web api, for login i am calling the token method which retus the access token. I would like to know how to secure our web api, so that without the access token it should allow to call the web api method. I am using the angular js resource, i believe we need to define the header in angularjs service part, but where and exactly i do not have any idea, can anyone please help me on this. Example:- This my service written in angularjs, sghServices.factory('GlobalSettingsService',...
ادامه مطلبVote count: 0 I have a business requirement to use TLS 1.1 or greater and to not use SHA-1 (or RC4). Are there any known-secure implementations of TLS 1.1 that do not use SHA-1 for the MAC? I can't seem to find any. I am thinking I should just skip past TLS 1.1 at the moment if there are no secure MACs available. asked 6 mins agoAndrew Keedy Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am facing this issue in my Android Application , this calls works perfectly alright in 4.4.2 Using Samsung TAB DEVICE T230. Please assist me in this regard 05-30 14:32:00.510 25571-25586/suavesol.net.bsasmobileapp I/System.out: MyAsyncTask Class URL is = http://XXX.XXX.1.10:8080/XXXXXService/rest/service/verifyPinCode/2222 05-30 14:32:00.510 25571-25586/suavesol.net.bsasmobileapp I/System.out: MyAsyncTask Class jsonParam is = {"POST":"POST"} 05-30 14:32:04.450 25571-25586/suavesol.net.bsasmobileapp I/System.out: MyAsyncTask Class Reponse from server is : null 05-30 14:32:04.450 25571-25586/suavesol.net.bsasmobileapp W/System.err: java.io.IOException: No authentication challen...
ادامه مطلبVote count: 0 I'm trying to do a simple user registration login on Firebase, but i'm receiving this error: Uncaught ReferenceError: FirebaseAuthClient is not defined Here my code: var authClient = new FirebaseAuthClient(rootRef, function(error, user) { if (error) { alert(error); retu; } if (user) { // User is already logged in. doLogin(user); } else { // User is logged out. showLoginBox(); } }); function showLoginBox() { document.getElementById("#registerButton").addEventListener("click", function() { var email = document.getElementById("#email").val(); var password = document.getElementById("#password").val(); authClient.createUser(email, password, function(error, user) { if (!error) { doLo...
ادامه مطلبVote count: 0 I want to deploy a Rails application, using Neo4jrb, to production with Capistrano. During deployment the following error shows up: DEBUG [5a528d81] Finished in 0.057 seconds with exit status 0 (successful). INFO [acd66fd5] Ruing /usr/local/bin/chruby-exec 2.3.0 -- bundle exec rake assets:precompile as deploy@46.101.153.252 DEBUG [acd66fd5] Command: cd /home/deploy/projects/larp-tool/releases/20160522103925 && ( export RAILS_ENV="production" ; /usr/local/bin/chruby-exec 2.3.0 -- bundle exec rake assets:precompile ) DEBUG [acd66fd5] rake aborted! DEBUG [acd66fd5] Neo4j::Server::Resource::ServerException: Expected response code 200 Error for request http://localhost:7474/db/data/...
ادامه مطلبVote count: -2 I'm currently leaing ASP.NET MVC, and I came to a subject called "federated authentication". Could anyone tell me with example what it is and why to use it? Thank you! :) asked 1 min agoMr.Hurricane Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm trying to automatically get the user's profile picture when authenticating their Facebook addFacebookInformationToProfile() { if (Meteor.isServer) { // This will only merge in information the first time, then ignore it once the flag is true const user = Meteor.user(); let useame = slugify(user.services.facebook.name, ''); let i = 1; while (Meteor.users.findOne({useame})) { useame = slugify(user.services.facebook.name, '') + '' + i; i++; } Meteor.users.update({ _id: Meteor.userId(), 'profile.facebook': { $ne:true }}, { $set: { 'profile.email': user.services.facebook.email, 'profile.name': user.services.facebook.name, 'useame': useame, 'profile.gender': user.services.facebook...
ادامه مطلبVote count: 0 I have a rest api in nodejs. my mobile app will consume my rest api. Can i implement oauth2 type authentication using aws cognito for my mobile app? I need resource owner password grant if i implement oauth2. asked 23 secs agoLutfor Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am making api in laravel. I am using the database that is already built and is live. That system uses md5 with salt values. I want to do authentication for that system . how should do i have to do? My source code : public function authenticate(Request $request) { $email = $request->input('email'); $password = md5('testpassword' . 'saltvaluehere'); try { // // attempt to verify the credentials and create a token for the user if (!$token = JWTAuth::attempt([ 'email' => $email, 'pass' => $password ]) ) { retu response()->json(['error' => 'invalid_credentials'], 401); } } catch (JWTException $e) { // something went wrong whilst attempting to encode the token retu response()->json...
ادامه مطلبVote count: -1 Its a continuation to my previous post. I'm trying to create a web-service client with CXF and now managed to create it with code-gen plugin. But my service takes a few params to to authenticate the service (Say useame, password and clientId). While looking at the generated code, I'm unable to find a way to supply there parameters wile ruing the static client code generated by CXF. Is there any detailed tutorial available which describes the step by step process? Or any pointers would be helpful. Dev asked 7 mins agoDevak Let's block ads! بخوانید...
ادامه مطلبVote count: 0 We're ruing apache storm 1.0.0 on redhat and while trying to query an mssql database from within a bolt using Kerberos authentication jdbc:sqlserver://xxxyyy;databaseName=zzz;integratedSecurity=true;authenticationScheme=JavaKerberos we are getting the following exception [com.microsoft.sqlserver.jdbc.SQLServerCoection.terminate(SQLServerCoection.java:1884), com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:175), com.microsoft.sqlserver.jdbc.KerbAuthentication.GenerateClientContext(KerbAuthentication.java:278), com.microsoft.sqlserver.jdbc.SQLServerCoection.sendLogon(SQLServerCoection.java:3047), com.microsoft.sqlserver.jdbc.SQLServerCoection.lo...
ادامه مطلبVote count: 0 So I am making a test login app so I can use look at how the app and the server are behaving together. So I have three endpoints that I am working with. All three download json file so I can just print that out no problem. The issue is they all require a user name and password. I got the first one to download no problem and it works perfectly. I am using the androids built in authenticator in my httpClass to deal with this. All I have to do is pass my useame and password to it and it works just fine. Another endpoint is going to check if the user can login into the server. This also retus a json. It also requires a useame and password. but it will not work with the authenticato...
ادامه مطلبVote count: 0 I have setup a simple login with Forms Authentication that works fine on my localhost in an ASP.NET MVC app But when I published the website into a live application on the web the Forms Authentication doesn't work. What am I doing wrong? Here is my code: Controller: public ActionResult LoginUser(string useame, string password) { if (ConfigurationManager.AppSettings["UserName"] == useame && ConfigurationManager.AppSettings["Password"] == password) { FormsAuthentication.SetAuthCookie(useame, false); retu RedirectToAction("Index"); } retu RedirectToAction("Index"); } Javascript: $("body").on("click", "#loginbutton", function (e) { $("#loginbutton").attr("href", "/loginuser?useame=...
ادامه مطلبVote count: 0 I need to prove that I own the domain that will be covered by this SSL certificate so I need to create a file with a specific name and containing specific content, but I can't seem to get it right. I'm being asked for the following Make sure your web server displays the following content at http://www.domain.com/.well-known/acme-challenge/7xLLYjA7YGAvkCaASuJQl6PE8nHYFh6TBvyMRD3 before continuing: [Long String That I'm Being Asked To Display Here] So through Filezilia where all of my site files are, I made a separate directory for the following with acme-challenge in the .well-known directory and so on .well-known acme-challenge 7xLLYjA7YGAvkCaASuJQl6PE8nHYFh6TBvyMRD3 Then in th...
ادامه مطلبVote count: 0 Apologies in advance if I can't explain this very clearly. I am using forms authentication in my MVC Razor application. I have the following in my Web.Config: Techincally this works fine. The issue I am having is that my application is split into a Header.cshtml that never changes, and then a content area that changes based on the button clicked in the header. If the session has timed out the application writes the Login.cshtml to the content area, instead of the whole page. In my WebForms application with frames simply adding the following to the login page: if (parent.frames.length > 0) { parent.location.href = self.document.location; } took care of the issue. Does anyone kno...
ادامه مطلبVote count: 0 azure mobile services offers a nice authorization / authentication framework. On a client I can simply use something like user = await App.MobileService .LoginAsync(MobileServiceAuthenticationProvider.Facebook); to login to my backend. As Microsoft writes in azure documentation this is a "...tukey solution...". Is there a "non azure" implementation of this available? My goal - enhance an existing ASP.NET MVC 5 site with the ability for "non web" (Xamarin and UWP) clients to login and use WEB Api calls and SignalR with authentication. asked 1 min agoMaiAT Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I just recently updated Apache 2.2 to Apache 2.4, and having a bit of trouble understanding the new stuff for authentication. What I'd like to have happen is for the website to check whether the visitor has their IP whitelisted, and if so, be let in, and if their IP isn't listed, they have to put in a useame/password. AuthType Basic AuthName "Random Title" AuthUserFile /home/useame/public_html/.htpasswd Require ip 55.55.555.555 Require valid-user This is code that I found, and currently have implemented, but it throws an Inteal Server Error. What am I overlooking/not have in it? asked 2 mins agoDamian Cardona This entry passed through the Full-Text RSS service - if this is your...
ادامه مطلبVote count: 0 I have a python program that requires Google Drive Authentication. When I run it in Windows from the command Line python xxx.py it works perfectly. I have created an exe file using pyi-build (PyInstaller). When I double click on the exe file it takes me to the authentication page. I click on 'Allow' and I get the exception 'Google Drive not authenticated' The relevant code follows gauth = GoogleAuth() try: gauth.LocalWebserverAuth() except: dlg=wx.MessageDialog(None, 'Google Drive not authenticated', 'xxxxx', wx.OK|wx.ICON_EXCLAMATION) result=dlg.ShowModal() self.Close() Can anyone suggest what is amiss? asked 1 min agoPsionman This entry passed through the Full-Text RSS servic...
ادامه مطلبVote count: 0 Im trying to use C# to coect to the Nutshell API I'm unsure where the method name goes. Is it on the URL or as part of the JSON? I have tried both ways without success. I know my email is valid as I have tried the same method on the nutshell website Here is my code:- var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://api.nutshell.com/v1/json/"); httpWebRequest.ContentType = "text/json"; httpWebRequest.Method = "POST"; using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream())) { string json = "{"method": "getApiForUseame", "user":"myemail@email.com.au"}"; streamWriter.Write(json); streamWriter.Flush(); streamWriter.Close(); } var httpResponse = (H...
ادامه مطلب