Avoid Database Login prompt when using CrystalReportViewer

Is there a way to keep the Database Login prompt from coming up when using Crystal Reports runtime 2008 SP2? I'm using that plus Visual Studio 2008 to develop a Windows Form application to view reports on a client machine that accesses data on a seperate SQL Server 2005 machine. My customer would like to avoid having users manually enter anything everytime a report is opened with the Crystal Reports viewer.
I've used the following code with ODBC and OLE DB report connections. When I use ODBC, the prompt comes up with Integrated Security checked which must be cleared. When I use OLE DB, the prompt comes up with Database Name blank and greyed out so I cannot manually enter it.
Am I missing something here?
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Windows.Forms
Public Class Form1
    Private Sub setDatabaseLogon(ByVal myConnectionInfo As ConnectionInfo)
        Dim logOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
        For Each logOnInfo As TableLogOnInfo In logOnInfos
            logOnInfo.ConnectionInfo = myConnectionInfo
        Nex
    End Sub
    Private Sub ConfigureCrystalReports()
        Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
        setDatabaseLogon(myConnectionInfo)
        myConnectionInfo.DatabaseName = "ClearView"
        myConnectionInfo.UserID = "reports"
        myConnectionInfo.Password = "dstreports"
        myConnectionInfo.IntegratedSecurity = False
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        ConfigureCrystalReports()
    End Sub
End Class

Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
Login Error Database at Runtime
Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
Thanks for the help!

Similar Messages

  • Database login windows when using DataSet ( CR2008 )

    After executing this code, I get a database login window when using a DataSet, wondering why I am asked for user/pwd when using DataSets.

    Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
    Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
    I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
    Login Error Database at Runtime
    Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
    Thanks for the help!

  • Crystal reports "Database login failed" when using push method

    I have a web application (ASP.NET, .NET v3.5), that pushes data to a CR 2008 report. On two servers one of the three reports returns a "Database login failed" error. I am stumped since there is no login, it's push not pull; in addition the problem is hard to debug since it works fine from my developers workstation. I have "updated" the xsd in that report, reinstalled the app, etc., non of which helped. If anyone has a solution or even ideas I'd appreciate the help.

    What about following the troubleshooting steps as described in the blog;
    Create an XML file off of your dataset. Make sure this is done just before you set the dataset to the report:
                rpt.Load(rptPath)
    myDataset.WriteXml(xmlPath, XmlWriteMode.WriteSchema)
    rpt.SetDataSource(myDataset)
    Copy the above created XML to your development system
    Open the problem report in the Crystal Reports designer
    In the Desigger, go to the Database menu and select u201CSet Datasource Locationu201D
    In the u201CReplace with:u201D pane, expand the u201CCreate New Connectionu201D folder.
    Double click the u201CADO .NET (XML)u201D icon
    Browse to the location of the XML file you created in step (1)
    Click on the path to the XML. The <Update> button should enable
    Click on the <Update> button
    Typically, either of the following will happen:
    You will get a u201CMap Fieldsu201D dialog. This indicates that the XML written off of your dataset does not match what the report is expecting. This may be due to incorrect fields name, incorrect field type, etc. You will now need eliminate the difference.
    Incorrect data or no data. There is an issue with your dataset and you need to determine why the data is not present in your dataset. Looking at the XML may be a good place to start.
    Ludek

  • Occasional Database Login prompts

    Post Author: Jon Webb
    CA Forum: .NET
    I'm have a problem with occasional logon info prompts when I refresh a report. I'm using Crystal Report .NET XIR2 with SQL Server Express. Normally, my reports work fine. The server and database are set dynamically at runtime. The code I use for this is:     Protected Sub SetDatabaseConnection(ByVal rd As ReportDocument)        Dim tlois As TableLogOnInfos = Me.CrystalReportViewer.LogOnInfo        Dim ci As New ConnectionInfo        ci.DatabaseName = DefaultDatabase        ci.IntegratedSecurity = False        ci.Password = Password        ci.UserID = User        ci.ServerName = DefaultInstance        For Each tloi As TableLogOnInfo In tlois            tloi.ConnectionInfo = ci        Next        If rd Is Nothing Then rd = Me.CrystalReportViewer.ReportSource        For Each table As Table In rd.Database.Tables            table.LogOnInfo.ConnectionInfo = ci            table.ApplyLogOnInfo(table.LogOnInfo)        Next        For Each subreport As ReportDocument In rd.Subreports            For Each table As Table In subreport.Database.Tables                table.LogOnInfo.ConnectionInfo = ci                table.ApplyLogOnInfo(table.LogOnInfo)            Next        Next    End SubSometimes, however, I get Database Login prompts when I refresh the reports. This happens with some reports and not others, even though I call the same method above for all reports. The Database Login prompt has the right server name, user, and password, but the database name is blank.The behavior varies over time.  Yesterday, for example, one of my reports was showing this behavior, and another wasn't. Today, without any code changes, I'm getting it in two reports. But a third report still works. All three reports use the same command for accessing the database data, and have the same subreport structure.Also, the behavior is client-dependent. I can run the report on one PC (using the same SQL Server) and the report works fine. On another client, I consistently get the login prompt with two reports but not another. I believe the problem only occurs where the server is remote. We've never seen it with a local SQL Server. All this leads me to think that something is happening behind the scenes with Crystal Reports. Perhaps the logon info is being cached somewhere and not reinitialized. I've tried rebooting my client machine and restarting the SQL Server to no avail. Does anyone have an idea what is going on here? This is a serious problem for some of our customers. Jon WebbPEP Systems, Inc.

    Post Author: Jon Webb
    CA Forum: .NET
    I got some more information on the login prompt. I somehow figured out how to turn on logging in Crystal Reports and got this error when the login prompt happened: <Log>  <Message></Message>  <File>.\crreportsource.cpp</File>  <Line>303</Line>  <Time>2008/01/29 13:43:26.184</Time>  <ThreadID>01216</ThreadID>  <DetailMessage><!&#91;CDATA&#91;Analysis Server: 0x8004100FDatabase logon failed.\servers\ras\dtsagent\reporthandler.cpp (9557)Analysis Server: 0x8004100F&#93;&#93;></DetailMessage></Log><Log>  <Message></Message>  <File>.\crreportsource.cpp</File>  <Line>426</Line>  <Time>2008/01/29 13:43:26.294</Time>  <ThreadID>01216</ThreadID>  <DetailMessage><!&#91;CDATA&#91;.\crreportsource.cpp (420)RptControllers.dll: 0x8004100FDatabase logon failed.Analysis Server: 0x8004100FDatabase logon failed.\servers\ras\dtsagent\reporthandler.cpp (9557)Analysis Server: 0x8004100F&#93;&#93;></DetailMessage></Log>Does that help? Anyone?Jon WebbPEP Systems, Inc.

  • VS Net 3.5 Crystal Reports Deployment causing database login prompt

    I have deployed a Visual Studio executible module written in VB Net 3.5 SP 1 with Crystal Reports. When the user tries to view a report(s)
    they are prompted to login in to the data base that has been data sourced into the report module. The correct database was verified before the build was made. The developer is able to run the report in a run mode on the local machine where the VB project was created.
    In the properties section in the project the following check boxes pertaining to reports were checked on:
             Crystal Reports Basic for Visual Studio 2008(x86, x64)
             Microsoft Visual Studio 2008 Report Viewer
    Notes: If the executible module is deployed to a machine that has Visual Studio 2008 installed, the Reports run fine without a database login prompt.
             If the executible module is deployed to a machine that does not have Visual Studio 2008 installed, the user is prompted for a login.
             The data base is a SQL server 2008 database.
    I'm being prompted for a server/database login when deploying the application and running it on a machine that does not have Visual Studio 2008 installed on it. One thing I forgot to mention is that the prompt dialog has only the database server name pre-filled but there is
    no database name in the dialog. Both of these fields are grayed out. The Crystal Report was updated to reference the new server and database, and I also verified the database successfully.

    Hello,
    Not sure what DB driver you used to create the reports but if it's the native driver then you need to install the Native client from MS SQL Server 2008 CD/DVD onto the app server also.
    MS SQL 2008 will not use MDAC, which is always installed. It requires the client to be installed.
    There is also an issue when using OLE DB driver and Time(7) field types in MS's driver and Crystal Reports. Cr see's them as string fields, the driver returns the wrong field type to CR. ODBC does work with these field types.
    And is your application running in 32 or 64 bit mode?
    Thank you
    Don

  • SP2010 - Documents migrated from different farm cause login prompts when opening..

    We have 3 SharePoint farms (Dev/Test/Prod) and we migrated Word documents between them a couple of different ways.. AvePoint's DocAve, copy from Explorer view of the two farms and Download/Upload.
    The documents were originally created on  the development farm.
    When we open documents in the production farm, the user is prompted with a login box to login to the development farm. New documents created in the production farm don't prompt.
    Anyone know where / what information is being stored in the document that would reference the old farm? and how to clear it?

    Hi,
    According to your post, my understanding is that documents migrated from different farm cause login prompts when opening.
    I try to reproduce the issue, however, everything works well.
    I recommend as below:
    Open the site in the browner, click tool->Compatibility View Setting->Add the site to be displayed in Compatibility View.
    Click Tool->Internet Options->Security->Trusted Sites.
    Click Tool->Internet Options->Security->Restricted sites->Allowed level for this zone: Medium.
    Modify your registry settings for the WebClient service.
    Go to the file's properties > Security > Advanced  > and Inherit the permissions.
    More information:
    SharePoint Keeps Asking for Password Everytime?
    SharePoint Keeps Prompting for Credentials
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Why being prompted for login/password when using OVDC, smart card,token/vdi

    Hello,
    I'm using VDI 3.2.1, OVDC, smart card and i assigned a smart card token to a desktop pool.
    Inserting the smart card triggers a new VDI desktop selector which prompts for the login and password.
    Is there any reason why VDI is prompting for the login/password in the VDI selector when using a smart card especially that the smart card token has been assigned to a desktop pool ?
    Thanks
    Thierry.

    You still have to authenticate to get a desktop. If you assigned a token to a pool, the ability to be assigned a desktop is based on the token not the user ID. That means that any user will be assigned a desktop if they use that card.

  • How to avoid login prompt when viewing reports

    Hello,
    I am trying to access a report that I have put in the shared reports folder
    I have copied the URL, see below, from the copy shortcut link.
    However I am being prompted for a User name and password
    http://server:port/OracleBAM/12345/reportserver/default.jsp?Event=viewReport&ReportDef=6&Buttons=False&ReportParameters=()
    Can you please advise
    a) If I can bypass or default a username and password in the URL
    b) If the above is not achievable then do I need to set up each person, viewing the report, with a username and password and somehow pass these credentials in with the URL.
    Thanks in advance,
    Kevin

    Hi Kevin,
    I am sure its too late to post a reply for this question but it will be useful for others.
    Yes, you can bypass the login prompt by implementing SSO to the BAM with a default username/password.
    You can write a simple java code to simulate the process of submitting a login form, thus allowing users to access weblogic protected resources, like BAM report URL, without re-entering the username and password in the login page.
    You can use HTTP client API to simulate Form Based HTTP Authentication. It will have to first post HTTP request to authenticate default user 'weblogic' and then from HTTP response get the cookie and pass it to the subsequent HTTP request (with the report URL) to access protected resource.
    I had the same requirement and it worked for me :).
    Thanks
    Jahangir Pasha
    Edited by: Jahangir Pasha on Mar 28, 2013 12:40 AM

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • Getting Database Logon Prompt when trying to run report from Infoview

    I have a user who has 2 Crystal reports loaded in InfoView.  The reports are similar except for the parameters.  When scheduling one of the reports, she is being prompted with the database logon information everytime she tries to enter the parameters.  But on the other, she isn't.  All she is prompted with is the parameters of the report.  Which setting in InfoView or CMC controls the database logon prompt? We are on BOE 11.5.
    Thanks,
    Maureen

    Dynamic Parameters. You'll want to get all your report designers up on this topic.
    When you create a dynamic parameter in a Crystal Report, and then publish it to the Enterprise, you are creating a Business View, with all it's underlying necessary layers. Dynamic Parameters exist to be able to use the same LOV (a list of current customers) from a database for more than one report. These dynamic parameter LOVs act like a mini report that runs against the database and gets the current values for selection, then the selection(s) are used to run the overall report.
    So I create a report, and in it I create a dynamic Customer LOV. When I save it, the Enterprise creates a Data Connection (DC), Data Foundation (DF), Business Element (BE), Business View (BV), and the list of values is built on the Prompt Group. So, my Business View Manager, Repository Explorer will show (in the default Dynamic Cascading Prompts folder):
    Customer_DC
    Customer_DF
    Customer_BE
    Customer_BV
    Customer - Prompt Group
    Customer (the LOV)
    The idea is that next time I create a report and need a customer parameter, I select the existing dynamic group. If the report designer is unaware of this, and next time they create a new report that needs a customer LOV, they creates a new dynamic LOV "Customer", when saved to the Enterprise, it repeats the above. Since repository objects must have unique names, you will now have additional items something like:
    Customer 2_DC
    Customer 2_DF
    Customer 2_BE
    Customer 2_BV
    Customer 2 - Prompt Group
    Customer 2 (the LOV)
    So you can see how that folder will get filled with duplicates pretty quickly. Which ones were created and used in which reports? Have to open the report in Crystal Reports, open the parameter for Edit and verify the LOV name (_2, _3, _4, etc). If you do in fact discover there are dupes, you can change it to a single one for all reports using a dynamic LOV, re-save them to the Enterprise, then delete the dupes in the BVM.
    You've already discovered how to use the BVM to update the data connection to include/save the database credentials. The only other common issue is sometimes the LOV rights need to be changed in order to allow users to "Edit" the LOV (select different values in the LOV). You'd have to run the report as an end user, not the admin account or the report designer account to verify that works.
    Another item of note is that these dynamic LOVs are run by the Report Application Server (RAS), regardless of which viewer you are using.
    The Business View Manager administration guide has more information on the subject.

  • How to remove Open/Save prompt when using Internet Explorer

    Acrobat XI Pro was deployed with custom MST that had When using Internet Explorer prompt for Open/Save.  Is there a hack that will disable this prompt without having to re-install Acrobat XI Pro?

    An engineer gave me a possible solution, but I don't have permission on my machine to test it. You can try the following:
    -- snip --
    This is because of not having necessary permissions to edit the registry. To obtain the permission, follow following steps:
    Right click on “HKEY_CLASSES_ROOT\AcroPDF.FDF.1” and click permissions.
    On permissions dialog, click Advanced.
    In the new dialog, select Owner tab and make current user as owner.
    Click Apply and close the dialog.
    Close the permission dialog.
    Try editing the registry as suggested.

  • Clafirication on Login Detials  when using JNDI in Toplink

    Hi,
    I am using Toplink in my application for connecting to Database using JNDI ,which is specified in session.xml ,given below
    <toplink-configuration>
    <session>
    <name>default</name>
    <project-xml>META-INF/toplinkMapping.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/PROD</datasource>
    </login>
    </session>
    </toplink-configuration>
    but in the toplinkMapping.xml mapping file i also have an entry for Login Credentials .
    The partial xml mapping file for Login details is given below.
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>stage</toplink:user-name>
    <toplink:password>0186BD6F6439FA38D570EB1C6286D1EB41782C546151871A</toplink:password>
    <toplink:driver-class>oracle.jdbc.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@localhost:1522:DEV</toplink:connection-url>
    </toplink:login>
    Can anyone please explain why the login details are required here in the mapping file ,while iam connecting DataBase through JNDI using DataSources in the Session.xml
    Thanks in advance

    Hi Jeremy,
    I've tried adding:
    php_value upload_max_filesize 30M
    to the .htaccess file but I get a 500 Internal Server Error
    Seems like using .htaccess files has been deactivated by your host.
    Please try with adding...
    ...on line 1 of the script which needs that, and see if that works -- if even this doesn´t work, I fear I can´t provide any other suggestion than transferring your site to a hosting provider which handles stuff the standard way and doesn´t force you to use such odd workarounds, which I have never heard of.
    Sorry, needed to get that off my chest, but some hosting companies out there are really strange :-)
    The problem is that I use the php.ini files to override the server setting
    I suspect (can be wrong though) that the php.ini file placed in whatever directory will start "from scratch" everytime a document in that folder is "triggered", and that´s why the session of page A are getting destroyed on page B
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Display Login failure when using External Custom Login Form

    I am new to OAM area and really apreciate if some one can guide me in the right direction. I have configured External Custom Login Form (thanks to fusionsecurity blog) with Oracle Access Manager 11g + webgate 10g. If I enter correct user id and password in the below form, then all is good and able to access the protected resoruce.
    If I enter incorrect values for loginname/password fields, then the from simply refreshes itself and does not give me any error message. How can display error message when a user enters in correct values for those fields?
    <form action="http://hostname:7777/oam/server/auth_cred_submit" method="post">
    <fieldset>
    <legend>Login Screen</legend>
    <label for="username" accesskey="u">User Name:</label>
    <input type="text" id="username" name="username" size="15" tabindex="1">
    <label for="password" accesskey="p">Password:</label>
    <input type="password" id="password" name="password" size="15" tabindex="2">
    <input type="hidden" name="login-form-type" value="pwd">
    <input class="submit" type="submit" value="Login" tabindex="3">
    </fieldset>
    </form>
    Thanks

    Hi!
    I have installed Oracle Access Manager 11g + Webgate 11g and not 10g, but I think
    it has to work beause login is being processed by OAM (/oam/server/auth_cred_submit);
    and it if does not work, it may give you a clue on how to do it.
    Having stated that fact, it is very simple to do it: whenever I try to access a protected
    resource and I am not authenticated I am redirected to my login page and some
    special parameters are passed to it such as: request_id, OAM_REQ, authn_try_count and
    some others.
    authn_try_count is the magic one as it show the number of login tries, so here is
    a code snippet of my login page which uses JSTL for conditional processing.
    <form...>
    <c:if test="*${param['authn_try_count'] > 0}*">
    &lt;span class="error-msg"&gt;
    <fmt:message key="login.val.wrong.login"/>
    &lt;/span&gt;
    </c:if>
    </form>
    Best regards,
    Jesús García from
    Mexico city

  • CHARM: UCs - Login prompt when changing Support messages to test

    Hi,
    When changing a support messages UC to test, the login prompt screen is displayed. How can we stop login screen?
    Thanks,
    Digesh

    Hi,
    When changing a support messages UC to test, the login prompt screen is displayed. How can we stop login screen?
    Thanks,
    Digesh

  • Getting AADSTS50020 error on microsoft login page when using Azure Active Directory Authentication

    We have implemented Azure Ad single sign on using auto generated code from Visual studio 2013 with organization account authentication and its working fine.
    The problem is when user is logged in in azure management portal with his live account and in other tab he try to open our app, then he directly gets below error on Microsoft login page.
    Additional technical information:
    Correlation ID: 78e13474-6f92-40ec-b463-91e36a6dae84
    Timestamp: 2015-04-14 12:27:20Z
    AADSTS50020:
    User account '[email protected]' from external
    identity provider 'live.com' is not supported for application
    'https://xxxxx.onmicrosoft.com/xxxx'. The account needs to
    be added as an external user in the tenant. Please sign out and sign in
    again with an Azure Active Directory user account.
    It works fine if I log out from management portal. Is there any way to resolve this issue without forcing user to log out from live account(management portal)?

    I assume you created a web application using VS2013 which uses the WS-Federation protocol.
    The behavior that you are seeing is expected Single-sign-on because you are logged in using the live account in the management portal.
    For WS-Federation, there is no current way for a caller to specify they want to force a fresh login, so the behavior is always the equivalent of LoginBehavior.Normal.
    The user will need to either sign-out or use an in-private session in the browse.
    If you switch to openID connect(sample at
    https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet) and use the “prompt=login” query paramerter in the sign in request, this will force a fresh login.

Maybe you are looking for