Giter Site home page Giter Site logo

arichika / aspnet.identity.oracle Goto Github PK

View Code? Open in Web Editor NEW
20.0 8.0 21.0 912 KB

AspNet.Identity.Oracle for ASP.NET Identity 2.0 with ODP.NET

License: MIT License

C# 72.47% CSS 0.33% ASP 0.05% JavaScript 4.65% HTML 22.50%
aspnet-mvc aspnet-mvc-5 odp-net identity

aspnet.identity.oracle's People

Contributors

arichika avatar namcigar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aspnet.identity.oracle's Issues

Want to create admin role for ApplicationDbInitializer unblock code.

@cengizani wrote...
cengizani commented 2 hours ago
Hi Arichika, Firstly, thank you so much for this project. It is good idea. I want to use your solution with our oracle db. I have completed register and login process. But when I want to user administration and group management then I have an ApplicationDbInitializer problem. So, when unblock code start with "public class ApplicationDbInitializer : " in IdentityConfig.cs and IdentityModels.cs " Database.SetInitializer<" code block then have an error 3 Message:"The type 'IdentitySample.Models.ApplicationDbContext' cannot be used as type parameter 'TContext' in the generic type or method
'System.Data.Entity.DropCreateDatabaseIfModelChanges'.
There is no implicit reference conversion from 'IdentitySample.Models.ApplicationDbContext' to 'System.Data.Entity.DbContext'."
Would you like the help me for this problem? Thanks again.

@cengizani wrote...
cengizani commented 44 minutes ago
I found something, apologizing is made;
In IdentityModels.cs ApplicationDbContext class inherit from OracleDatabase.
"public class ApplicationDbContext : OracleDatabase"
in some examples on the Internet an inherit from IdentityDbContext with applicationuser
I wonder how it's done in the original MySql instance of info?
"public class ApplicationDbContext : IdentityDbContext"
or
"public class ApplicationDbContext : IdentityDbContext"

@arichika wrote...
arichika commented 2 minutes ago
"AspNet.Identity.Oracle" has been designed so that it does not use any of Entity Framework.
So, I think that "IdentityDbContext" can not be used.
Be in this code there is a bug...
https://github.com/arichika/AspNet.Identity.Oracle/blob/master/Src/SampleWebSite/App_Start/IdentityConfig.cs#L136
"new RoleStore(param)" requires OracleDatabase object.
https://github.com/arichika/AspNet.Identity.Oracle/blob/master/Src/AspNet.Identity.Oracle/RoleStore.cs#L46
The code might need cast likes
https://github.com/arichika/AspNet.Identity.Oracle/blob/master/Src/SampleWebSite/App_Start/IdentityConfig.cs#L29
Want you to create admin role for ApplicationDbInitializer unblock code? Right? @cengizani
and I will create new issue ticket for this question.

Lockout doesn't work

Hi,

Loved your code. Very helpful.

One issue had me puzzled for sometime now. The user lockout (after x tries) does not work.
After debugging your code I found that the following code should be fixed wherever it occurs in UsetTable.cs

user.LockoutEndDateUtc = string.IsNullOrEmpty(row["LOCKOUTENDDATEUTC"]) ? DateTime.Now : DateTime.Parse(row["LOCKOUTENDDATEUTC"]);
should be
user.LockoutEndDateUtc = string.IsNullOrEmpty(row["LOCKOUTENDDATEUTC"]) ? DateTime.UtcNow : DateTime.Parse(row["LOCKOUTENDDATEUTC"]);

Hope I helped a bit.

Best regards,

Harris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.