It appears that I can only have one Top Level Domain (TLD) associated with one firebaseapp SSL hosting. Is that true?
For example, I'd like https://x.example.com to go to my https://x.firebaseapp.com and https://y.example.com to go to my https://y.firebaseapp.com
When I try I see: (see image below) (I'm using https://city.tidalforce.org/ for a different firebase app at https://cityregister.firebaseapp.com/ but I'd like to use the same domain for another app with another full name such as https://y.tidalforce.org
Is this possible?
In short no, although you may be able to host different apps in different subfolders like https://example.com/x, https://example.com/y and if they have javascript router for example, if you are using Angular for front-end and using Angular-router or something you will nee to provide appropriate rewrite rules like:
"rewrites": [ {
"source" : "/x/**",
"destination" : "/x/index.html"
},
{
"source" : "/grid/**",
"destination" : "/grid/index.html"
} ]
to rewrite url requests from that folder to route correctly.
Hope it helps :)
Related
I checked the docs here: https://firebase.google.com/docs/hosting/multisites and here: https://firebase.google.com/docs/cli/targets but I don't think I understand them well enough and I am unable to host different content on different subdomains within the same domain using Firebase. E.G (page.website.com and website.com) My Firebase.json file looks like this:
{
"hosting": [{
"target": "mainSite",
"public": "public"
},
{
"target": "authentication",
"public": "authentication"
}
]
}
I don't really understand where to direct the folder to the subdomain using:
firebase target:apply hosting TARGET_NAME RESOURCE_IDENTIFIER
Is that RESOURCE_IDENTIFIER? E.G is website.com or whatever site what I should put into RESOURCE_IDENTIFIER? I am lost.
I don't really understand where to direct the folder to the subdomain
using:
firebase target:apply hosting TARGET_NAME RESOURCE_IDENTIFIER Is that
RESOURCE_IDENTIFIER? E.G is website.com or whatever site what I should
put into RESOURCE_IDENTIFIER? I am lost.
RESOURCE_IDENTIFIER refers to the SITE_ID values that you used to construct the Firebase-provisioned default subdomains for the site, see this section of the doc.
You defined them when executing the following command in the the Firebase CLI:
firebase hosting:sites:create SITE_ID
In parallel (and independently of the previous settings) you can associate a custom domain (e.g. page.website.com and website.com) to each of your site.
I try to use keycloak as the authentication service in my design. In my case, when the keycloak starts, I need one more realm besides default master realm. Assuming the new agency is called "demo".
So it means when keycloak starts, it should have two realms (master and demo).
In addtion, in the realm demo, I need to configure the default client "admin-cli" to enable "Full Scope Allowed". Also need to add some buildin mapper to this client.
In this case, I wonder whether I can use something like initialization file which keycloak can load when starting ?
Or I need to use keycloak client APIs to do this operations (e.g., Java keycloak admin client)?
Thanks in advance.
You can try the following:
Create the Realm;
Set all the options that you want;
Go to Manage > Export;
Switch Export groups and roles to ON;
Switch Export clients to ON;
Export.
That will export a .json file with the configurations.
Then you can tested it be deleting your Demo Realm and:
Go to Add Realm;
Chose the .json file that was exported;
Click Create.
Check if the configurations that you have changed are still presented on the Demo Realm, if there are then it means that you can use this file to import the Realm from. Otherwise, for the options that were not persistent you will have to create them via the Admin Rest API.
I have set up rewrites for named functions in firebase.json but still firebase.functions().httpsCallable() envokes [my-server].cloudfunctions.net/[function-name] instead of [my-server].com/
I am upgrading a current project that has been working fine with cloudfunctions.net, but I would like to limit the domain names being called because of some firewalls blocking that domain.
Reading the guide if thought this addition in firebase.json would be sufficient:
"rewrites": [
{
"source": "/getResponse",
"function": "getResponse"
}]
and then calling the function from my app with:
firebase.functions().httpsCallable('getResponse')
...But that envokes [my-server].cloudfunctions.net/getResponse instead of [my-server].com/getResponse
Opening [my-server].com/getResponse in my browser works, so I figure, there is some sort of explicit setting on firebase.functions() where I can force it to use custom domain?
Thanks you for any help
There is no way to configure the Firebase client SDK for callable functions to invoke anything other than the default URL for the function. If this is somehow important to you, you are free to file a feature request.
It seems like OAuth.io providers (all here: https://github.com/oauth-io/oauthd/tree/master/providers) are static files; and the thing with GitHub Enterprise is, the domain name is not github.com, but something different for each customer. Is there a way to make OAuth.io work with a provider whose domain name is always different, such as for the GitHub Enterprise use case?
Take a look at Shopify provider implementation which have the same problematic
https://github.com/oauth-io/oauthd/blob/master/providers/shopify/conf.json
We added a parameter shop
"parameters": {
"shop": "string",
...
}
This parameter is configurable in OAuth.io when setting API keys:
and this parameter can be reused in URLs:
`"url": "https://{shop}.myshopify.com",`
Feel free to make a pull request if you have the time to add Github Enterprise to the list of OAuth providers !
App Search API Validation Tool of "Apple" is not validating my domain.
https://search.developer.apple.com/appsearch-validation-tool
I am using universal links but "Link to Application" is showing me "Error".(http://www.awesomescreenshot.com/image/1719847/330979a43c4c6b2766da1e703447ee04)
Here is my "apple-app-site-association" file code.
{"applinks": {"apps": [],"details": {"XXXXXXXXXX.com.streatmanagement.threadshare": {"paths": ["*"]}}}}
Can someone please solve my query or send the sample of "apple-app-site-association" valid code?
Apple's API validation tool compares your website's association file to a store listing. If your app is not yet publicly available the error you listed will be displayed.
Your apple-app-site-association has a small typo where you specify the details (it should be an array). I also assume you're replacing the XXXX's with your app ID.
{
"applinks": {
"apps": [],
"details": [
{
"appID": "APPID.BUNDLEID",
"paths": [ "*" ]
}
]
}
}
Even if you get this error from Apple's validation tool, you can test Universal links. If your Universal Link does not work on your test device you need to inspect the device logs when you fresh install it and make sure your apple-app-site-association is available at the root of your site via https with no redirects. Sometimes there is issue if the content-type is not application/json (but the file name should remain exactly apple-app-site-association).