Jump to content

Obi1-Cannabis

Members
  • Posts

    146
  • Joined

  • Last visited

About Obi1-Cannabis

  • Birthday 08/15/1985

Previous Fields

  • Languages
    HTML, CSS, JavasScript, PHP, .NET

Contact Methods

  • MSN
    Obi1-Cannabis@hotmail.com
  • ICQ
    0

Obi1-Cannabis's Achievements

Member

Member (2/7)

0

Reputation

  1. Is it possible to extend the OAuthGrantResourceOwnerCredentialsContext class from Microsoft.Owin.Security.OAuth? when implementing my custom OAuthProvider I want to be able to add a new IList to the context in order to send messages that will be intercepted by Growl in AngularJs. what i want to do in case of an error for example is something like: public class CustomOAuthProvider : OAuthAuthorizationServerProviderExtended{ //removed code for brevity public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContextExtended context) { //removed code for brevity ApplicationUser user = await userManager.FindAsync(context.UserName, context.Password); if (user == null) { context.messages.Add(GeneralEx.CreateGrowlMessage("The company, user name or password is incorrect.", "error")); return; } //removed code for brevity }} where CreateGrowlMessage is public static GrowlMessage CreateGrowlMessage(string message, string severity) { GrowlMessage growlMessage = new GrowlMessage(); growlMessage.text = message; growlMessage.severity = severity; return growlMessage; } and GrowlMessage is public class GrowlMessage{ public string text; public string severity;} I was trying to extend both OAuthAuthorizationServerProvider and OAuthGrantResourceOwnerCredentialsContext shown bellow public class OAuthAuthorizationServerProviderExtended : OAuthAuthorizationServerProvider { public virtual Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContextExtended context) { return Task.FromResult<object>(null); } } public class OAuthGrantResourceOwnerCredentialsContextExtended : OAuthGrantResourceOwnerCredentialsContext { public OAuthGrantResourceOwnerCredentialsContextExtended(IOwinContext context, OAuthAuthorizationServerOptions options, string clientId, string userName, string password, IList<string> scope) : base(context, options, clientId, userName, password, scope) { } public IList<GrowlMessage> messages {get;set;} } but this is not having the desired effect. now all login attempts fail and all i get in the response is {"error":"invalid_grant"}
  2. according to this page: http://caniuse.com/css-variables the use of css variables will be available on firefox when they lauch version 31 for other browsers it seems like there's no info about whem they'll support this functionality
  3. Never mind, the problem was not with my configuration, that was correct... The problem was that the user hadn't fully configured the email accouint...
  4. I'm having trouble sending emails from an email like "mail@domain.com" wich is configured to use the live.mail.com client. Even though i think i'm using the right credentials i get the following error: "Mailbox unavailable. The server response was: 5.7.3 Requested action aborted; user not authenticated" this are my configurations: smtpClient = new SmtpClient("smtp.live.com");smtpClient.Port = 587;smtpClient.UseDefaultCredentials = false;smtpClient.Credentials = new System.Net.NetworkCredential("mail@domain.com", "Password");smtpClient.EnableSsl = true; any help is appreciated, for I can't seem to work-arround this problem and have to have this website online ASAP
  5. setting animation-fill-mode: forwards means that after the animation has completed execution i will hold at its final properties until the animation is removed. i guess i don't really understand what you are trying to acomplish.
  6. I say there's space for a lot of improvement here, the page looks overwhelmed even though there isn't that much information, you should make use of more clear space. the backgrounds should be more smooth to give it a more appealing to the eye feeling. also a more readable frendly font would be good this just for starters take a look at the Web Design Concepts section of this page http://www.w3.org/community/webed/wiki/Main_Page#Web_Design_Concepts study it and try to improve your overall design.
  7. You'll need to use -webkit-animation-fill-mode -webkit-animation-fill-mode: forwards; leaves the animation in the last frame -webkit-animation-fill-mode: backwards; leaves the animation in the start frame
  8. hey, thanks for the reply justsomeguy! i already found the problem the MySql Connector installed in the production server was a very old version. It's solved.
  9. I'm trying to figure this out for a few day now, i have custom membership and role providers for my project and it works perfectly on my dev machine, but on production it throws the following error for the web.config I've read about people having simmilar issues because they hadn't named their connectionstrings but that's not the case here... any toughts on what's going on here? if you need any more info just ask and i'll provide. thanks for any help
  10. if i got you right what you have to do is something like: var mouseListener:Object = new Object();mouseListener.onMouseMove = function(){ if(x_mouse > 0){ this.currentFrame += 1; } if(x_mouse < 0){ this.currentFrame -= 1; }} i'm not sure, because i didn't had the time to try. just saying from the top of my head.but it can't be much diffrent.
  11. Obi1-Cannabis

    Web Cam

    hmm ok, in that case what you should see is this http://www.informit.com/guides/content.asp...um=299&rl=1. i haven't tried it though.
  12. Obi1-Cannabis

    Web Cam

    why don't you try searching on google for: using webcam with flash. i found some interesting stuff about movement detection, i don't think that's what your looking for, but it may be of some help.
  13. Is it possible to pass a php variable into a js variable without the use of post get or ajax?i thought maybe something like: <? print"<script language=JavaScript>";print"var jsVar= '".$phpVar."';";print"</script>";?> I think it actually does work, but it keeps giving me errors that don't have anything to do with this variable but that don't appear when i'm not using that variable...
  14. hmmm... yes tested it already... :)cool and easy to use.tkx
×
×
  • Create New...