Comments (5)
This is not a bug IMO. There is a clear note in the docs you pointed:
Remember that you can (and you should) also overwrite templates provided by this bundle
Thus you should adjust the base templates from the bundle to your needs, we cannot ensure that the end user sets all things.
from hwioauthbundle.
@stloyd and what about
Also in src\Resources\config\routing\connect.php the registration route is hardcoded, we should be able to customize it.
In my case I am using Symfony's default Security solution to handle my users, and I already have a route named register, I don't want to get double route with registration, and If I am not wrong, with the current version it is not possible
from hwioauthbundle.
You can add your route, what is important is just the name and parameters in the route, we don't care about what path the route has.
from hwioauthbundle.
@stloyd I don't see anywhere on the documentation which says how to customize the route after user tries to login with a not existing account. It redirects automatically to the route /connect/registration
which is hardcoded in src\Resources\config\routing\connect.php
.
from hwioauthbundle.
You don't see this cause setting routes are basics of usage of Symfony.
As said you're not forced to use that routing, you can create a new routing file like this:
use HWI\Bundle\OAuthBundle\Controller\Connect\ConnectController;
use HWI\Bundle\OAuthBundle\Controller\Connect\RegisterController;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
return static function (RoutingConfigurator $routes) {
$routes->add('hwi_oauth_connect_service', '/service/{service}')
->controller([ConnectController::class, 'connectServiceAction'])
->methods(['GET', 'POST']);
$routes->add('hwi_oauth_connect_registration', '/my-own-registration/{key}')
->controller([RegisterController::class, 'registrationAction'])
->methods(['GET', 'POST']);
};
from hwioauthbundle.
Related Issues (20)
- Update Facebook API version HOT 1
- Incorrect provider in docs? HOT 1
- Connect functionality is broken when using authenticators (Symfony 6+)
- Best practice to handle access token for API requests after login HOT 3
- Since 2.2.0 firewalls failure_handler gets overriden HOT 2
- All custom resource owners have the same login_path when setting enable_authenticator_manager to true HOT 4
- User registration if not exist, without filling the form HOT 2
- How to disable default login route HOT 1
- Support Facebook OIDC token flow HOT 3
- Documentation error on state option HOT 2
- Failure handler not overriding HOT 4
- validate google externally provided id_token? [support question] HOT 2
- Deprecation message when using it with Symfony 6.4 HOT 1
- windows_live: client ID required in the request made to Microsoft HOT 1
- class is considered internal since Symfony 7.1, to be deprecated in 8.1 HOT 1
- Support multiple Microsoft Azure AD/Entra ID clients?
- `failure_path` is not used when "connect" feature is disabled
- Support for groups and roles
- Configuration for failure_handler not working after updating from 1.4 to 2.2.0
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 hwioauthbundle.