authorization

Google Maps Android v2 Authorization failure

僤鯓⒐⒋嵵緔 提交于 2019-12-01 21:43:30
I am testing the sample google code on an actual device having 2.3.6.I thought it might be the problem with the key ,so I created different key on a different account through Google's API Console.Still the same problem "Google Maps Android API-Authorization Failure". Here is the log: 12-07 10:31:30.476: D/dalvikvm(17791): DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp 12-07 10:31:30.484: W/dalvikvm(17791): VFY: unable to resolve instance field 24 12-07 10:31:30.484: D/dalvikvm(17791): VFY: replacing opcode 0x52 at 0x0012 12-07 10:31:30.484: D/dalvikvm

SVN Restrict File Access using Wildcards

倾然丶 夕夏残阳落幕 提交于 2019-12-01 20:30:52
问题 I took over as software lead on a project and am now managing the SVN repository for said project. Access to different parts are being controlled with an authz file. Groups have been set up for developers, leads, testers and cm control. A file exists in multiple branches and tags that we want to limit access to. In order to lock it down, I want no read or write access except to the leads group. Is there a way to do this without listing out each branch/tag area where it could be? I don't want

Why would .NET suddenly try to serialize my object in my ASP.NET application?

你说的曾经没有我的故事 提交于 2019-12-01 20:15:53
I run an Azure web role in Full IIS mode. Requests are authorized with custom basic authentication . I have MyAssembly.CustomIdentity class that inherits from System.Security.Principal.GenericIdentity . When HttpApplication.AuthenticateRequest handler ( OnEnter() code from the link above) is invoked it performs checks, then creates an instance of MyIdentity.CustomIdentity and assigns it to HttpContext.Current.User . Then an actual ASP.NET request handler obtains that object and can use it to find what user it is for. Now everything more or less works fine in default configuration when IIS is

Facebook SDK 3.1 - com.facebook.sdk Error 5 when authenticating with [facebook authorize:permissions]

泪湿孤枕 提交于 2019-12-01 20:00:43
问题 When authenticating with following authorization method i'm getting com.facebook.sdk error 5 with startWithGraphPath and startForMeWithCompletionHandler but not with requestWithGraphPath. I'm succesfully getting token (printing in didLogin) and getting anything which i want with requestwithGraphPath but i'm unable to get work with other methods. If anybody encountered with same issue or something similar or has any idea, i'd be happy if you share it. Thanks Method: NSArray *permissions = [

Is making an asp:Button control invisible enough to be sure users won't be able to click it?

限于喜欢 提交于 2019-12-01 19:43:12
I'm making a simple website that lists files from a certain folder. If the user has admin rights, the user can delete files by clicking the "Delete" button. In my .aspx file, I have the following code: <asp:Button runat="server" Text="Delete" OnCommand="FileList_Delete" CommandArgument='<%#Eval("FilePath")%>' Visible='<%CurrentUserIsAdmin()%>' /> So the button will not be rendered if CurrentUserIsAdmin() returns false . The button is rendered like this: <input type="submit" name="ctl00$ctl00$MainContent$LocalMainContent$FileList$ctrl0$ctl17" value="Delete" /> My question is: Can I be sure that

SVN Restrict File Access using Wildcards

浪尽此生 提交于 2019-12-01 19:41:19
I took over as software lead on a project and am now managing the SVN repository for said project. Access to different parts are being controlled with an authz file. Groups have been set up for developers, leads, testers and cm control. A file exists in multiple branches and tags that we want to limit access to. In order to lock it down, I want no read or write access except to the leads group. Is there a way to do this without listing out each branch/tag area where it could be? I don't want anyone to go find it in an old revision if possible. An exmaple of my authz file is here: ### Groups

How to lock users using Devise?

安稳与你 提交于 2019-12-01 15:43:29
I want to add a subscription type functionality in my application for the account holder users such that after a fixed interval of time they will not be able to access their account? Note: I dont want to delete their account from the database. I've already installed devise-2.1.2 in my application. Do any body have any idea how can it be done? I am newbie to Ruby on rails so it will be very helpful to me if you please explain the steps. Devise have a buil-in solution with the :lockable option check in the Devise Lockable Documentation You have to set the lock_strategy set to :failed_attempts.

How to lock users using Devise?

这一生的挚爱 提交于 2019-12-01 14:41:08
问题 I want to add a subscription type functionality in my application for the account holder users such that with few failed login attempts they will not be able to access their account. Note: I don't want to delete their account from the database. I've already installed devise-2.1.2 in my application. Do any body have any idea how can it be done? I am newbie to Ruby on rails so it will be very helpful to me if you please explain the steps. 回答1: Devise have a buil-in solution with the :lockable

YesodAuthEmail could not deduce m ~ HandlerFor site0 [duplicate]

时光怂恿深爱的人放手 提交于 2019-12-01 12:16:20
This question already has an answer here: What's wrong with this YesodAuth instance? 1 answer I'm trying to add instance YesodAuthEmail App to the Yesod-Postgres scaffolding (yesod version 1.6) and getting stuck on a compile error. The relevant code is: instance YesodAuth App where type AuthId App = UserId .... authPlugins :: App -> [AuthPlugin App] authPlugins app = [authOpenId Claimed []] ++ extraAuthPlugins where extraAuthPlugins = [ authEmail ] instance YesodAuthEmail App where type AuthEmailId App = UserId afterPasswordRoute _ = HomeR addUnverified email verkey = runDB $ insert $ User

How can I get authorization token from browser intent?

你说的曾经没有我的故事 提交于 2019-12-01 12:01:06
Sorry for my bad English, I'll try to explain my problem as simple as I can. I'm trying to make an app, which works with Yandex API. On their help page, I've read that you should launch browser from app where user logins and then return to application by registering URI Callback. What I have now: @Override public void onClick(View view) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://oauth.yandex.ru/authorize?response_type=token&client_id=XXXXXXXXXXXXXXX")); startActivity(browserIntent); } This launches browser and redirects to authorization page. After entering