Skip to content

OAuth - Revoke Token #45

@lakeba

Description

@lakeba

Hi,
I am using your library successfully to integrate an MVC application with the SalesForce Oauth and to fetch data's.

I full used your sample code in WebServerOAuthFlow and all good.

My problem now is how to logoff and make sure the login page is showed again.

I thought that the revoke of the token was enough but not.

This the situation:

  1. a user digit my website address, if not logged in then redirect to Oauth page.
  2. once he login with salesforce the server callback my webapi and I store the logged status in session.
  3. then I have a logoff button with a actionlink that revoke the token of salesforce, empty the session and redirect to the home page.

Till here all fine, but when I reopen the website, the oAuth page redirect me automatically to the home page as seems that the authentication happens automatically.

Any suggestion?

thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions