Comments (8)
The contributor who added the feature confirmed they could log in successfully so I guess it can work in certain circumstances?
from astro-netlify-cms.
Actually tested this myself and I think comments in #33 may have been misleading. Looks like: if you were already logged in before, logging in again without the identity widget works. But if you are trying to log in for the first time (e.g. with a different browser/device or incognito window), you do need the identity widget to make that work.
Given that, I think your proposal of always including on /admin
makes sense until we hear otherwise @SeanMcP 👍
from astro-netlify-cms.
Thanks again for offering to make this change @SeanMcP — decided I needed it myself for a project I was working on so got it implemented and released in v0.3.5 🙌
from astro-netlify-cms.
Should be feasible. Maybe we could go for something like:
NetlifyCMS({
injectIdentityWidget: 'site' | 'admin-only' | false
})
This would default to 'site'
and replace the current option for disabling the widget injection.
Would you be interested in making a PR?
from astro-netlify-cms.
Is there ever an instance where you wouldn't want identity on the admin page? An alternative might be to keep the current behavior and just include it in the admin-dashboard.astro
component.
from astro-netlify-cms.
Good to know! Being able to log in makes sense, but I wonder how you can invite users without the identity script running somewhere on the site to handle the invite_token
.
I guess if you add the option, then it is up to the user to handle.
from astro-netlify-cms.
Sounds good. It's a small change, but I would be happy to make it if that would be helpful.
from astro-netlify-cms.
Absolutely — a contribution would be great!
from astro-netlify-cms.
Related Issues (20)
- i18n support HOT 2
- I can't log in to Netlify CMS HOT 2
- admin page is blank, 404 error trying to get admin-dashboard.astro HOT 4
- `netlify-cms-app` import failed to resolve with astro's react integration HOT 11
- Error: spawn netlify-cms-proxy-server ENOENT on "astro dev HOT 8
- Creating a collection for global/page-specific settings HOT 3
- Undefined disableIdentityWidgetInjection causes script to be injected onto every page HOT 1
- Switch from NetlifyCMS to StaticCMS HOT 8
- Localization
- Got This Error HOT 3
- Netlify Identity doesn't seems to be registered by the admin login panel HOT 1
- Customize admin-dashboard.astro layout
- Issues implementing layout to blog posts. HOT 1
- Issue when adding NetlifyCMS to astro config & using getCollection with render() HOT 1
- Upgrade to DecapCMS 3.0 HOT 1
- Invite/reset emails point to a wrong URL when using i18next with `showDefaultLocale: true`
- Automatically generate collections from Content Collections
- Oauth Gateway not working
- Update to Decap HOT 2
- entryPoint is deprecated (includes fix)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro-netlify-cms.