I have created the content provider application. I want to use the content provider in another application. Any permissions required in the application for accessing the content provider.
Yes, you have to give following permissions in manifest file:
uses-permission android:name="android.permission.permRead"
uses-permission android:name="android.permission.permWrite"
Related
I am learning web allowed objects in the universal application. Previously I am using script notify to know any action on the content in my web view, where i specified the URL of my web view content in the app manifest file. Now I am trying to switch it from script notify to web allowed object. But without specifying any URL in the app manifest it is working as expected. Is is the behavior of the web allowed object or something I missed?
According to Accessing the Windows Runtime in a web view section of WebView class:
You can use the AddWebAllowedObject method to inject an instance of a native class from a Windows Runtime component into the JavaScript context of the WebView. This allows full access to the native methods, properties, and events of that object in the JavaScript content of that WebView.
So that you may not need to specify URL to make it work with accessing the native methods in Runtime component, but ensure to decorate the class with the AllowForWeb attribute.
Specifying any URL you mentioned in the app manifest is for addition features that trusted JavaScript content in WebView can be allowed to directly access Windows RuntimeAPI. This provides powerful native capabilities for web apps hosted in a web view. For more details about this feature please reference Accessing UWP features.
I've followed the steps on http://www.cloudidentity.com/blog/2014/02/12/use-the-on-premises-organizational-authentication-option-adfs-with-asp-net-in-visual-studio-2013/ to create a new MVC application using ADFS to authenticate my users. Now the team behind the ADFS configuration needs the application metadata file to allow the application to connect the ADFS.
How can I generate this metadata file?
It normally "lives" at /FederationMetadata/2007-06/FederationMetadata.xml in your STS website. If you used a standard solution like thinktecture then that is the case. Otherwise, you can generate it yourself using the .Net classes in System.IdentityModel.Metadata. You can find some inspiration at https://github.com/IdentityServer/IdentityServer3.WsFederation/blob/25a2101f9bfe78e4ec856eb15c9bf19a9a9b256c/source/WsFederationPlugin/WsFederationController.cs and related classes.
To write custom federation , after generating jar using pom from wso2 docs , i put that in said folder . but how do use this custom federation , Documentation stops after this .
I cant see my new custom federation name in any drop down , i was expecting to see this in the list of federation drop down in Service Provider configuration
If we write custom federation for Oauth IDP , all the urls configuration have to be programatically managed in OSGI bundle, we wont get UI for that ?
Why is OAuth not supported if we have any other vendor apart from facebook and google, yahoo, which is not openid connect we cant use any out of the box SSO .
i got my Bundle loaded on to WSO2 these were the steps
i started wso2 with osgi console
$>wso2Server.bat -DosgiConsole
After this server starts and if we hit enter we can get osgi prompt
there we can type osgi commands
try $> package org.abc.whateverpackage
this will list all the bundles that import/export the given package name within the runtime.
try to $install file:<filepath> this gives an error message saying something is missing in imnport or whatever issue might be
im my case i started with pom from wso2 so i had to correct the configuration
from org.wso2.carbon.identity.application.authentication.framework.*,
to org.wso2.carbon.identity.application.authentication.framework.*;version="4.2.2"
the number 4.2.2 i got from the dependencies in the pom
i added BundleActivator
<Bundle-Activator>com.osgi.customauth.Activator</Bundle-Activator>
Now when i create an IDP i can see my custom Authenticator in the list along with google , yahoo etc
But all the urls for OAUTH are in my code i have to programatically externalize this , i did not yet find a clean way to do this
I have an MVC app that I deployed to test on my machine (IIS on XP). I am unable to login using credentials I have set up using the ASP.NET configuration. Everything works fine before I published app. After typing in my username and password, the app doesn't seem to recognize it and gives the follwoing error message
![enter image description here][1]
By default, a new MVC project is configured to use the Membership Provider with SQLExpress using a file called aspnetdb.mdf in your App_Data folder. When you published, did that file make it to the destination?
To verify this is the issue, check your web.config. Look for the membership tag and the providers tag underneath that. Locate the AspNetSqlMembershipProvider provider and check its connection string. It will likely say ApplicationServices if you haven't changed it from the default. Then, check the ConnectionStrings node in your web.config to verify what database the Membership Provider is trying to use and where it's located.
As the title says.
Can some give me instructions how to do this
as I cannot see how.
I am used to IIS5 & 6.
Also when I try to add write access to the folder
in explorer there is no Add option to add a user ie ASPNET account.
This is on Vista
Malcolm
You need to grant access to the IIS_USRS group (for the AppPool) and the IUSR user (for anonymous access / static content).
IIS 6 and IIS 7 are using NETWORK SERVICE as account for access to the system resources. You need to give rights to this account