Comments (9)
Please supply us with ready-to-run reproduction code in the form of something we can copy/paste, a (zipped) project structure or a GitHub repository.
We do not have capacity to craft or compose a reproduction for every issue that gets raised. In this case I would need to dive into the setup of the external providers first. As you have already done that, help us to help you by sharing what you have. Thanks.
I have Created a repository ready to run. Details are in README. I have added a short video to Issue.
https://github.com/Doc415/Fluent-Issue
Thanks.
from fluentui-blazor.
Please supply us with ready-to-run reproduction code in the form of something we can copy/paste, a (zipped) project structure or a GitHub repository.
We do not have capacity to craft or compose a reproduction for every issue that gets raised. In this case I would need to dive into the setup of the external providers first. As you have already done that, help us to help you by sharing what you have. Thanks.
from fluentui-blazor.
I've created the database locally and ran the migrations. Running the solution now gives:
Am I missing something in UserSecrets
perhaps?
from fluentui-blazor.
PS, I see in program.cs
that you have builder.Services.AddQuickGridEntityFrameworkAdapter();
You should change that to use our own adapter which works together with the FluentDataGrid
from fluentui-blazor.
I've created the database locally and ran the migrations. Running the solution now gives:
Am I missing something in
UserSecrets
perhaps?
I have filled dummy id and secret in appsetings.
I should mention it in the Readme
The application runs in my side, and i could not reproduce the error. I couldnt understand if this error appears when starting the application or using the solution for bug?
I am learning asp.net and not very experineced in github communications.
Anything i should do?
from fluentui-blazor.
PS, I see in
program.cs
that you havebuilder.Services.AddQuickGridEntityFrameworkAdapter();
You should change that to use our own adapter which works together with the
FluentDataGrid
Thanks for the review. I ll fix it.
from fluentui-blazor.
I have filled dummy id and secret in appsetings. I should mention it in the Readme The application runs in my side, and i could not reproduce the error. I am learning asp.net and not very experineced in github communications. Anything i should do?
No worries. We all needed to learn it sometime 😀
I found the error for this. In code you had things like:
googleOptions.ClientId = configuration["Authentication:Google:ClientId"];
googleOptions.ClientSecret = configuration["Authentication:Google:ClientSecret"];
where that was specifiedappsettings as GoogleClientId
(insteadof ClientId).
Can now debug...
from fluentui-blazor.
Ok, found the issue. Will be changed in the next version of the templates.
For now, you do not need to change the /Account/Manage/ExternalLogins page (but you can if that works for you).
The fix will be made where the form post is handled, which is IdentityComponentsEndpointRouteBuilderExtensions.cs
. We already have code in there to fix the /PerformExternalLogin post action. We just need to use the same fix in the /LinkExternalLogin action
- Add the following at the end of that file:
private static string TemporaryFluentButtonFix(string provider)
{
// Temporary workaround for FluentButton returning a provider value twice
// Split the comma-separated list of strings
var providers = provider.Split(',');
// Find the value that appears twice in the list
provider = providers.GroupBy(p => p)
.Where(g => g.Count() == 2)
.Select(g => g.Key)
.First();
return provider;
}
- Remove line 39 and further up until the
var properties = ...
and replace with
provider = TemporaryFluentButtonFix(provider);
- In /LinkExternalLogin inset
provider = TemporaryFluentButtonFix(provider);
before the line var properties = ...
As said, this will be part of the new templates.
Closing this as a solution is provided an will be fixed in next release
from fluentui-blazor.
Ok, found the issue. Will be changed in the next version of the templates.
For now, you do not need to change the /Account/Manage/ExternalLogins page (but you can if that works for you).
The fix will be made where the form post is handled, which is
IdentityComponentsEndpointRouteBuilderExtensions.cs
. We already have code in there to fix the /PerformExternalLogin post action. We just need to use the same fix in the /LinkExternalLogin action
- Add the following at the end of that file:
private static string TemporaryFluentButtonFix(string provider) { // Temporary workaround for FluentButton returning a provider value twice // Split the comma-separated list of strings var providers = provider.Split(','); // Find the value that appears twice in the list provider = providers.GroupBy(p => p) .Where(g => g.Count() == 2) .Select(g => g.Key) .First(); return provider; }
- Remove line 39 and further up until the
var properties = ...
and replace withprovider = TemporaryFluentButtonFix(provider);
- In /LinkExternalLogin inset
provider = TemporaryFluentButtonFix(provider);
before the line
var properties = ...
As said, this will be part of the new templates.
Closing this as a solution is provided an will be fixed in next release
Thank you very much
from fluentui-blazor.
Related Issues (20)
- fix: blazor.web.js breaks in version 4.8.0 HOT 1
- fix: Support Safari 15 (and earlier) HOT 6
- fix: Mouse click on FluentMultiSplitter bar changes position HOT 1
- feat: Add BarHandle parameter to FluentMultiSplitter HOT 8
- Scrolling not working with keyboard in AutoComplete HOT 4
- feat: add Timeline HOT 2
- SelectedItemChanged doesn't trigger after updating Items in FluentTreeView HOT 1
- fix: FluentOverflow initially paints and then repaints if an overflow is detected, leading to a flash in FluentOverflow HOT 2
- fix: FluentOverflow does not fit to container when ChildContent is modified HOT 2
- fix: FluentSelect ValueChanged called with wrong option HOT 1
- fix: FluentDataGrid GenerateHeaderOption.Sticky not working in Chrome on iPad HOT 2
- fix: Misleading cursor in toast action HOT 1
- fix: Nullable value not working in `FluentTimePicker`
- feat: set Items as optional in ItemsProvider HOT 12
- fix: Menu outside of the screen in `FluentMenu` HOT 1
- fix: Selected option not initially set in FluentSelect only in version 4.8.0 HOT 2
- fix: FluentDatePicker does not update value when current value is null and user selects date from drop down calendar in FluentDatePicker HOT 9
- FluentNavGroup 4.8.0 exception HOT 1
- fix: MaximumSelectedOptions not limiting in FluentAutocomplete HOT 3
- fix: FluentSwitch, FluentAutocomplete and serverals other components do not align at the middle when using inside FluentDataGrid HOT 1
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 fluentui-blazor.