#auth0

/

      • woloski has quit
      • woloski joined the channel
      • yenkel joined the channel
      • cristiandouce has quit
      • oncenull has quit
      • oncenull joined the channel
      • Barkha has quit
      • Barkha joined the channel
      • Barkha has quit
      • iaco1 has quit
      • cristiandouce joined the channel
      • cristiandouce has quit
      • cristiandouce joined the channel
      • oncenull has quit
      • oncenull joined the channel
      • arvindRaghavan joined the channel
      • arvindRaghavan
        Hello, I have a question about importing the framework for use in a Swift project
      • arvindRaghavan has quit
      • oncenull has quit
      • arvindR joined the channel
      • arvindR
        Hello, anybody there?
      • yenkel
        arvindR: Hi. Sorry we missed you earlier!
      • how is everything going?
      • arvindR
        Yeah, it looks like my window froze
      • Well, I'm stuck on bridging the Auth0 client to my swift project
      • I think I've done what I should correctly-- created a bridging header,
      • yenkel
        ok. I assume you are following this guide: https://developer.apple.com/library/prerelease/...
      • arvindR
        added it to the build
      • Yes, I think I've done all that
      • yenkel
        to be honest, we have not tried to make the SDK work with Swift through the bridge yet, so let's take things step by step
      • what issue are you facing?
      • arvindR
        Okay, the line
      • import Auth0Client
      • in my Swift file is complaining
      • "No such module...
      • yenkel
        do you actually need to import it? based on the docs it seems you could just do Auth0Client directly as long as the header file is public
      • mind giving that a try?
      • arvindR
        Sure, let me try that
      • yenkel
        (in the meantime I'm trying to set this up locally)
      • arvindR
        Actually, I may have tried that, but let me do so again
      • Wow, that seems to catch
      • (Autocomplete works!)
      • yenkel
        that's great to hear.
      • arvindR
        I think the first time I may have not configured my bridging header correctly
      • (it needs to be explicitly added to the build settings)
      • yenkel
        yup, that might have been the case. when I tried a couple of things with swift I also spent some time trying to import things
      • arvindR has quit
      • arvindR joined the channel
      • finally realized it was not neccessary
      • arvindR
        This chat window keeps hanging on me when I switch tabs within Safari
      • Sorry, could you please repeat that?
      • yenkel
        yup, that might have been the case. when I tried a couple of things with swift I also spent some time trying to import things
      • arvindR
        Ah
      • So import is not necessary
      • yenkel
        at least for our SDK it shouldn't
      • arvindR
        I was using the import line as my "check" to see if I was configured correctly. Bad choice of check-code
      • Cool, thanks for your help, let me see how things go from here
      • yenkel
        glad we were able to solve the issue, plus now we now know it works. have a nice day!
      • arvindR
        You too!
      • arvindR has quit
      • jfroma has quit
      • keving joined the channel
      • keving
        hello
      • I'd like to speak with someone regarding integration please
      • woloski
        hey Kevin
      • keving
        hello. are you a auth0 support team member?
      • woloski
        yep
      • keving
        pm
      • ?
      • woloski
        yes I'm here
      • keving
        can we move this to a private chat?
      • woloski
        yes, I replied in private as well
      • eugenio joined the channel
      • eugenio
        Hi Kevin
      • you here?
      • oh, matias tells me he's already chatting with you
      • pose has quit
      • eugeniop has quit
      • cristiandouce1 has quit
      • slackbot1 has quit
      • gonto has quit
      • gonto joined the channel
      • cristiandouce1 joined the channel
      • eugeniop joined the channel
      • slackbot1 joined the channel
      • pose joined the channel
      • cvcvcv joined the channel
      • cvcvcv
        Hello, is there on android any way to have the same API, I mean Auth0Client as in iOs or Xamarin exist
      • I don't want use web widget
      • yenkel
        cvcvcv: Hi. Right now what is available at https://github.com/auth0/Auth0-Android/ is the only approach we have working for Java Android.
      • we have plans for a native SDK in the near future
      • cvcvcv
        yenkei, I'm ready to write it for you, for 100% free, if you just gave me links how to do it
      • is xamarin library opensource?
      • yenkel
        yes, all of our libraries are open source and we always welcome new contributions.
      • let me look for a couple of links that will be useful
      • in the near future it will include the behavior from this branch: https://github.com/auth0/Xamarin.Auth0Client/tr...
      • please, do let us know if you end up craeting a library for the app you are working on. that way we can eventually for it and add the fork to the Auth0 org so it gets greater visibility
      • and of course mention you as the main contributor ;)
      • cvcvcv
        looks like not so much code write
      • *to write
      • thanks for links
      • yenkel I'll keep you updated)
      • yenkel
        it is not a big lib
      • do let us know if you find issues with the impl
      • if you start the project please share the github url with us whenever you feel comfortable. it will get us excited about the project's progress :)
      • keving has quit
      • and thanks a lot for the great attitude :)
      • Shakti joined the channel
      • arvindR joined the channel
      • arvindR
        Hello again
      • yenkel
        arvindR: Hi there
      • arvindR
        So I was going through the client code
      • In need to check if the user is logged in
      • What would you recommend I test?
      • Shakti
        Hi i have java app but managing login with auth0 by domain_name/ro api call at backend without using auth0 Principal and all its config in my app
      • yenkel
        arvindR: conceptually a user is logged in as long as you have access to the id_token and it has not expired
      • let me look up some links that are useful to check that
      • arvindR
        You have an explicit logout where you delete cookies
      • Shakti
        And using its id_token and access token in my app
      • arvindR
        I'm wondering if I should save the token in my app code, or should I even save any state
      • yenkel
        arvindR: yes, and that is done because we are using a web view control. otehrwise
      • arvindR: you would always get the same user if the cookies were saved
      • Shakti: we will be right with you
      • Shakti
        Have a user table in my db, creating user in my db at the time of signing up with auth0
      • arvindR
        Right, so I'm missing something obvious here.
      • Shakti
        Now linking my local user table entry with auth0 user
      • yenkel
        arvindR: the id_token expires (by default) after 10 hours. you can modify the expiration time in our portal by changing the app settings
      • Shakti
        I want to implement log out functionality in my app with this architecture
      • yenkel
        arvindR: you can store that locally and retrieve it whenever the user opens the application. if the token has expired you they ought to be required to login again
      • arvindR
        The cookie, being saved, is sufficient to maintain the user state (unless the token expires). Is there someway I can get access to the user after the app is restarted
      • (within the token expiration window)
      • yenkel
        arvindR: the id_token has the users information if you specify a scope of "openid profile" https://github.com/auth0/Auth0.iOS/blob/master/...
      • arvindR
        Okay, thanks, let me chew on that for a bit
      • yenkel
        arvindR: ok. let us know if you run into other issues
      • arvindR
        Will do, thanks again!
      • Shakti
        We are storing local user table object( that is indirectly linked to auth0 user with its fields) in session
      • After user logins
      • Is it ok if we delete that local table user object from session on logout functionality?
      • And no logout call from auth0
      • yenkel
        Shakti: yes, that is one of the things that you will need to do
      • Shakti
        Ok so logout from auth0 is not required in this case ya?
      • yenkel
        Shakti: yes, that is correct
      • Shakti
        Login via auth0 will be done with domain_name/ro call
      • yenkel
        clearing the cookies is all you need to do
      • Shakti
        And logout from local session, no direct logout call in auth0
      • yenkel
        yes
      • basically making sure that all info you were storing for the user is gone. you don't need to call auth0 in this scenario
      • Shakti
        Ok thank you :)