TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Supabase Auth: SSO, Mobile, and Server-Side Support

183 点作者 bennyp101大约 2 年前

17 条评论

oakesm9大约 2 年前
&gt; Building apps for iOS requires support for native Sign in with Apple<p>This part isn&#x27;t 100% true. It is only a requirement if you have some other form of social login (such as &quot;Login with Facebook&quot;) and your app isn&#x27;t specifically made for using data from that platform (such as a Facebook page managemenet app) [0].<p>You don&#x27;t need Sign in with Apple if you only use your own account system.<p>[0]<a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;app-store&#x2F;review&#x2F;guidelines&#x2F;#sign-in-with-apple" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;app-store&#x2F;review&#x2F;guidelines&#x2F;#sig...</a>
评论 #35556682 未加载
andymitchell大约 2 年前
I can&#x27;t advocate Supabase enough. Their combo of openness and elegance in their platform leaves me (a developer&#x2F;entrepreneur) feeling secure.<p>This is perhaps a future topic, but to me it extends out of SSO:<p>Paul (@kiwicopple), do you have an opinion on which enterprise-grade AuthZ provider works best with Supabase?<p>I suspect it&#x27;s Cerbos or Casbin, but if you ever do it in house (and since you&#x27;ve nailed AuthN that makes great sense), my wishlist:<p>- It should be as simple as an API end point, .approve(auth.jwt(), Array&lt;Role | Permission&gt;). I.e. be available in Edge Functions, Postgres Functions, and anywhere else.<p>- Use a policy schema with the most industry support for easier acceptance&#x2F;integration with the enterprise.<p>- Flesh out with enterprise-ready policy auditing tools, logging, etc. This is the real time saving for developers.<p>- I really recommend Tailscale&#x27;s ideas for better RBAC in <a href="https:&#x2F;&#x2F;tailscale.com&#x2F;blog&#x2F;rbac-like-it-was-meant-to-be&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tailscale.com&#x2F;blog&#x2F;rbac-like-it-was-meant-to-be&#x2F;</a>
评论 #35556819 未加载
评论 #35559703 未加载
darksaints大约 2 年前
I’m not currently using supabase but I am using postgrest in a current SSO project, and I ran into major roadblocks with the JWT support. It works fine for versions with symmetric encryption for signing the tokens, where you provide the key to postgrest via config and it uses the key to authenticate requests. However, our identity provider (Azure AD) uses asymmetric encryption for signing tokens, with a public endpoint to retrieve public keys, and postgrest’s support for this is pretty bad. I’ve only been able to work around this issue by serializing the response to a string and providing it as a (really long) config value, and because keys can change over time, I have to restart Postgrest on a daily basis.<p>For more info, see this issue:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;PostgREST&#x2F;postgrest&#x2F;issues&#x2F;1130">https:&#x2F;&#x2F;github.com&#x2F;PostgREST&#x2F;postgrest&#x2F;issues&#x2F;1130</a><p>Does supabase work around this limitation somehow? How do you get SSO to work for auth providers like Auth0 and AAD that only provide public keys via an endpoint?
评论 #35558310 未加载
xcskier56大约 2 年前
Been doing a lot of Auth related stuff the last day or two so in classic HN style this is very timely for me!<p>One of the things that I really dislike about most auth providers is that it is very hard to implement login in your native UI. It almost always requires a redirect to a hosted UI page that is very clearly not your UI. We&#x27;ve found this a poor and potentially confusing user experience when you just need a form with username + password.<p>Question for Supabase: Is it possible to just have a form with username + password and POSTing the login details?
评论 #35558419 未加载
评论 #35565893 未加载
评论 #35558197 未加载
kiwicopple大约 2 年前
hey hn, supabase ceo here<p>this one is really 3 launches for auth:<p>- SAML 2.0, for developers can add SSO to their own apps<p>- PKCE: support for Mobile and server-side auth<p>- Native Apple login on iOS<p>We’ve been dogfooding SSO already and it stable.<p>PKCE is going to be rolled out incrementally across the platform - we’ve tried to engineer it so that there are no breaking changes for your applications, but will exercise caution with the deployment.<p>A lot of companies were blocked by the lack of iOS support - we had a lot of feedback on this one and so we appreciate the patience while we developed it. Native Android support will follow soon.<p>Some of the Auth team will be in to answer questions on the technical side. This is the second-to-last day of Launch Week - I promise that you’ll be rid of us after a few more releases tomorrow.
评论 #35555586 未加载
评论 #35557862 未加载
no_wizard大约 2 年前
I think this question deserves a separate thread:<p>Is it possible to see some working examples with some of the big SSO providers, e.g. integrating with Okta, Duo and AD installations in particular (like Azure AD and standard ActiveDirectory) in the documentation?<p>This would go a long way for smaller app developers to get SSO into their apps, even if the examples aren&#x27;t exhaustive its a starting point. I have found (having done SSO integrations before) that it can be <i>really</i> opaque sometimes reading their API documentation to add support to for such platforms.<p>I mention AD specifically because its a huge hurdle for the education markets still, for example
评论 #35556151 未加载
评论 #35558296 未加载
paradaux大约 2 年前
What I&#x27;d love to see with this is a way to use supabase auth itself as an idP&#x2F;SAMP provider. Have your tools (back-office tools and what not) written in native supabase, or have multiple supabase projects with the one shared auth system. Could be better UX for Sysadmins than OpenLDAP and so forth.<p>I&#x27;m currently building something similar to just do that on top of supabase for work. Happy to see the developments with Supabase Auth anyway.
评论 #35557237 未加载
zinclozenge大约 2 年前
So if anybody else got excited about multi-tenant SSO but was wondering how to implement it, the docs page is here <a href="https:&#x2F;&#x2F;supabase.com&#x2F;docs&#x2F;guides&#x2F;auth&#x2F;sso&#x2F;auth-sso-saml">https:&#x2F;&#x2F;supabase.com&#x2F;docs&#x2F;guides&#x2F;auth&#x2F;sso&#x2F;auth-sso-saml</a>.<p>I&#x27;m super excited because as a newcomer to needing to implement that feature, other SaaSes like auth0 were complicated and overwhelmed me.<p>Since we have Supabase employees here, one thing that isn&#x27;t clear to me is if OIDC based SSO is supported, or will be?
评论 #35557518 未加载
lelo_tp大约 2 年前
Really timely! I was about to start building the Apple sign-in flow for my RN app (already built the Google Sign-in). Supabase makes auth incredibly easy, thank you for that.<p>If you mind me giving some feedback: it took me a while to figure out how to properly build the auth flow with Expo&#x2F;RN. In the end, I went with Expo AuthSession. IMO, you&#x27;re missing an easy win with a template&#x2F;getting-started guide for RN. The only one that exists uses email&#x2F;password, and the OAuth flow is more convoluted than that :)
评论 #35556872 未加载
评论 #35556420 未加载
mkl95大约 2 年前
Supabase are killing it. I wish they had a Terraform provider.
评论 #35559087 未加载
评论 #35565599 未加载
infocollector大约 2 年前
This project is very impressive! I do hope Supabase decides to support <a href="https:&#x2F;&#x2F;github.com&#x2F;supabase-community&#x2F;supabase-py">https:&#x2F;&#x2F;github.com&#x2F;supabase-community&#x2F;supabase-py</a> , and not just leave it to the community. I would definitely consider becoming a paid customer, assuming Python was supported well&#x2F;natively. If I am incorrect about Python support, please do let me know.
评论 #35558111 未加载
niklasd大约 2 年前
Great news! Question to the Supabase team: How does Login with Azure (Social login) and SSO (Azure) differ? From my superficial understanding, implementing Login with Azure is enough for logging-in users with Azure AD accounts (and linking their accounts to existing ones).
jordanmorgan10大约 2 年前
I want, want, want to use Supabase - I yearn for a first party SDK for iOS.
评论 #35556904 未加载
bennyp101大约 2 年前
I&#x27;ve been waiting for this! Super excited to try it out!
评论 #35555461 未加载
raphaelcosta大约 2 年前
It works with Supabase self-hosted?
评论 #35566955 未加载
mooreds大约 2 年前
Disclosure, I work for FusionAuth, which can both integrate with and compete with Supabase.<p>Welcome, Supabase, to the world of SAML&#x2F;SSO. It&#x27;s a hairy one, but single sign-on is undifferentiated and really great for customers, so I&#x27;m glad you joined.<p>A few thoughts:<p>* Consider adding identity linking to your roadmap. I noticed[0] that you don&#x27;t support it, and will create duplicate accounts if someone uses SSO with the same email address that an existing account has. As a model, FusionAuth offers seven linking strategies[1]. This flexibility lets you handle more use cases.<p>* I&#x27;d encourage you (and your customers) to test across as many SPs as you can. SAML is an 800+ page specification and even though we&#x27;ve been offering SAML for over 10 years and have open sourced our bindings[2], we still have edge cases that pop up.<p>* I&#x27;d love to add FusionAuth as a SAML SSO provider to your docs, so will put that on our team&#x27;s doc roadmap and submit a PR. :)<p>* Not related to SAML, but I&#x27;m glad that you are supporting PKCE. I hope you deprecate the implicit grant; the XSS threat is very real and the OAuth 2.1 spec (still in progress) basically deprecates that grant[3] through omission. Also, we agree that setting cookies (HTTPOnly and secure, please) is a great way to store tokens[4] and that is worth requiring a server side component in applications.<p>Finally, I understand why this is part of a paid offering; SAML is often used to segment out enterprise customers with $$$. You like to make money, as do we all. But I&#x27;d encourage you to think about a free tier because it is so helpful to the user experience. Maybe 1 SAML connection could be part of the base offering?<p>0: <a href="https:&#x2F;&#x2F;supabase.com&#x2F;docs&#x2F;guides&#x2F;platform&#x2F;sso">https:&#x2F;&#x2F;supabase.com&#x2F;docs&#x2F;guides&#x2F;platform&#x2F;sso</a><p>1: <a href="https:&#x2F;&#x2F;fusionauth.io&#x2F;docs&#x2F;v1&#x2F;tech&#x2F;identity-providers&#x2F;#linking-strategies" rel="nofollow">https:&#x2F;&#x2F;fusionauth.io&#x2F;docs&#x2F;v1&#x2F;tech&#x2F;identity-providers&#x2F;#linki...</a><p>2: <a href="https:&#x2F;&#x2F;github.com&#x2F;FusionAuth&#x2F;fusionauth-samlv2&#x2F;commits&#x2F;master?after=337e5cc5ad09676009a8f23c1e9788f558b48693+104&amp;branch=master&amp;qualified_name=refs%2Fheads%2Fmaster">https:&#x2F;&#x2F;github.com&#x2F;FusionAuth&#x2F;fusionauth-samlv2&#x2F;commits&#x2F;mast...</a><p>3: <a href="https:&#x2F;&#x2F;oauth.net&#x2F;2.1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;oauth.net&#x2F;2.1&#x2F;</a><p>4: <a href="https:&#x2F;&#x2F;fusionauth.io&#x2F;learn&#x2F;expert-advice&#x2F;oauth&#x2F;oauth-token-storage" rel="nofollow">https:&#x2F;&#x2F;fusionauth.io&#x2F;learn&#x2F;expert-advice&#x2F;oauth&#x2F;oauth-token-...</a>
asdev大约 2 年前
who actually uses supabase at scale in production?
评论 #35557741 未加载