Activities of "pvaz"

Hello @gterdem,

I understand your explanation, but what I don't understand is why the login is independent or can be included as option like in Asp.Net Zero.

The identification should be possible to do within the angular or mvc or blazor project on my idea.

I know that we need to authenticate and validate the token to be able to use the services, but why not be able to do this inside the client project and needed to make this authentication thru another application and then return to prior page or redirect to another ?

Thanks, Paulo

On my side no.

Is it possible for me to share with you the project so you can test the way I have and see what's wrong with it ?

It's several days wasted and could not move on because of something that should be simple but in my case, is not.

Hi,

it's not a chrome related problem, i tried the link you've sent and the problem is the same.

I've tested deleting the database, changed the appsettings on Dbmigrator and run it again.

Problem is the same.

Did you tested following the example i said to simulate on your side ?

" abp new TestApp --template app-pro -csf -m react-native --preview -cs "Server=..." --tiered

do the migration

change appsettings.json on IdentityServer to be http not https and localhost to your local ip do the same on Properties/launchsettings.json

change appsettings.json on HttpApi.Host to be http not https and localhost to your local ip on AuthServer section and set RequireHttpsMetadata to false change Properties/launchsettings.json to http and localhost to your local ip

run the identityServer project and try to login "

Hi Liang,

the problem is not related with chrome, the problem it's easy to reproduce on your side:

create the project with the command:

abp new TestApp --template app-pro -csf -m react-native --preview -cs "Server=..." --tiered

do the migration

change appsettings.json on IdentityServer to be http not https and localhost to your local ip do the same on Properties/launchsettings.json

change appsettings.json on HttpApi.Host to be http not https and localhost to your local ip on AuthServer section and set RequireHttpsMetadata to false change Properties/launchsettings.json to http and localhost to your local ip

run the identityServer project and try to login

it will not give error or wrong password, just simply does not enter.

it's not related with chrome, the problem is the same on any browser.

react-native will not work also because of this issue, neither any project.

if you do the same not using the app-pro but app template, it works well.

there is one warning on terminal:

The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'.

Answer

@alper i did not upgraded, it's a clean project creation using the following command:

abp new AppTest --template app-pro -csf -m react-native --preview -cs "Server....." --tiered

the project is created and i change all references https to http on appsettings and properties and localhost to local ip.

when trying to use de identityserver, cannot log in, does not give error but also does not enter.

when trying to use react native, does not work.

if the project is based on the template app and not app-pro, it works well with the changes.

Seems in github there was a comment that on the night build of 4.1 version or preview version this is solved ? Is it ?

How can I use it to test it ? and when will be released the final version of 4.1 ?

Thanks,

Answer

Hi,

When I change the project to use http instead of https and change all localhost to my local ip, when i try to login on IdentityServer it does not give wrong password error but does not identify itself, does not store any cookie and shows again the login screen.

I need to use http and local ip in order to be able to test react native project. Since it does not like the self signed https local server.

The project was working well using localhost and https.

What's missing ?

Paulo

The main issue is that i do not have a running version, so it's a installation problem still.

Hi,

Any prediction when it will be released ? I'm under pressure to make a presentation and need that working.

Done the upgrade to RC4, done a new project.

Problem is the same:

Here is the error that show in command line:

  • You need to wait for Font.loadAsync to complete before using the font.

  • We recommend loading all fonts before rendering the app, and rendering only Expo.AppLoading while waiting for loading to complete.

  • node_modules\react-native\Libraries\YellowBox\YellowBox.js:63:8 in console.error

  • node_modules\expo\build\environment\muteWarnings.fx.js:27:24 in error

  • node_modules\expo-font\build\Font.js:18:16 in processFontFamily

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:3683:38 in diffProperties

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:3694:8 in diffProperties

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:4109:29 in createInstance

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:15835:12 in completeWork

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:19409:28 in completeUnitOfWork

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:19380:30 in performUnitOfWork

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:19347:39 in workLoopSync

  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18997:22 in renderRoot

  • [native code]:null in renderRoot
  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18709:28 in runRootCallback
  • [native code]:null in runRootCallback
  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5642:32 in runWithPriority$argument_1
  • node_modules\scheduler\cjs\scheduler.development.js:643:23 in unstable_runWithPriority
  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5638:22 in flushSyncCallbackQueueImpl
  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:5627:28 in flushSyncCallbackQueue
  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:18556:30 in scheduleUpdateOnFiber
  • node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:7799:17 in classComponentUpdater.enqueueSetState
  • node_modules\react\cjs\react.development.js:325:31 in Component.prototype.setState
  • node_modules\native-base\dist\src\basic\ToastContainer.js:1:4738 in showToast
  • http://192.168.2.171:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&minify=false:149244:43 in show
  • src\interceptors\APIInterceptor.js:46:13 in api.interceptors.response.use$argument_1
  • node_modules\promise\setimmediate\core.js:37:14 in tryCallOne
  • node_modules\promise\setimmediate\core.js:123:25 in setImmediate$argument_0
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:146:14 in _callTimer
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:194:17 in _callImmediatesPass
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:458:30 in callImmediates
  • [native code]:null in callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:407:6 in __callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:143:6 in __guard$argument_0
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:142:17 in __guard$argument_0
  • [native code]:null in flushedQueue
  • [native code]:null in callFunctionReturnFlushedQueue

Network Error

  • node_modules\axios\lib\core\createError.js:15:17 in createError
  • node_modules\axios\lib\adapters\xhr.js:80:22 in handleError
  • node_modules\event-target-shim\dist\event-target-shim.js:818:39 in EventTarget.prototype.dispatchEvent
  • node_modules\react-native\Libraries\Network\XMLHttpRequest.js:574:29 in setReadyState
  • node_modules\react-native\Libraries\Network\XMLHttpRequest.js:388:25 in __didCompleteResponse
  • node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js:190:12 in emit
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:436:47 in __callFunction
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111:26 in __guard$argument_0
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:110:17 in __guard$argument_0
  • [native code]:null in callFunctionReturnFlushedQueue

The above error occurred in task fetchAppConfig created by takeLatest(app/fetchAppConfigAsync, fetchAppConfig) created by _callee created by rootSaga Tasks cancelled due to error: takeLatest(app/fetchAppConfigAsync, fetchAppConfig) takeLatest(app/setLanguageAsync, setLanguage) takeLatest(app/logoutAsync, logout)

  • node_modules\react-native\Libraries\YellowBox\YellowBox.js:63:8 in console.error
  • node_modules\expo\build\environment\muteWarnings.fx.js:27:24 in error
  • node_modules@redux-saga\core\dist\io-1d6eccda.js:115:16 in logError
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:1006:13 in end
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:816:4 in abort
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:831:10 in task.cont
  • http://192.168.2.171:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&minify=false:196282:16 in end
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:816:4 in abort
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:831:10 in task.cont
  • http://192.168.2.171:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&minify=false:196282:16 in end
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:816:4 in abort
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:831:10 in task.cont
  • http://192.168.2.171:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&minify=false:196282:16 in end
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:816:4 in abort
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:831:10 in task.cont
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:1181:15 in next
  • http://192.168.2.171:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&minify=false:196446:11 in currCb
  • node_modules@redux-saga\core\dist\redux-saga-core.dev.cjs.js:399:2 in resolvePromise
  • node_modules\promise\setimmediate\core.js:37:14 in tryCallOne
  • node_modules\promise\setimmediate\core.js:123:25 in setImmediate$argument_0
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:146:14 in _callTimer
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:194:17 in _callImmediatesPass
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:458:30 in callImmediates
  • [native code]:null in callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:407:6 in __callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:143:6 in __guard$argument_0
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:142:17 in __guard$argument_0
  • [native code]:null in flushedQueue
  • [native code]:null in callFunctionReturnFlushedQueue

Hi,

seems almost everything is working now, only react native is now giving error and I did not test angular version.

When starting react native on a real android device, it give the following error:

console.error: "You started loading the font "Roboto.medium", but used it before it finished loading You need to wait for Font.loadAsync to complete before using the font. We recomend loading all fonts before rendering the app, and rendering only Expo.ApoLoading while waiting for loading to complete.

What's the solution ?

Showing 11 to 20 of 23 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11